Commit Graph
975 Commits
Author SHA1 Message Date
Alfredo Monclus b3b097fbe3 fix(job_status): restart sometimes not responding 2024-10-09 17:45:28 -03:00
Alfredo Monclus ab308e23f7 feat(bed_mesh): do z_tilt or quad_level if not done before 2024-10-09 17:45:28 -03:00
Alfredo Monclus 1872b40d9f fix(base_panel): remove printer name from printer_select and fix initial not connected error 2024-10-09 17:45:28 -03:00
Alfredo Monclus 0c9884bc85 fix: misplaced logging error in 71eef9e 2024-10-09 17:45:28 -03:00
Alfredo MonclusandMrTylerjet 5ae4e475b6 feat: battery status (#1457)
* Initial commit, added psutil for getting tablet/laptop battery percentage, initial code for getting the values and displaying the icon

* add battery svgs for light theme

* added light styled battery svgs for dark themes

* update icon based on battery percentage and if device is charging

* indentation fix, and forgot to add battery plugged checks for 33% and 66% battery levels

* move battery polling to its own timer now that i understand how to add an additional timer, checks every 30 seconds. check for if show battery is on or off

* add toggle to config for settings

* show battery callback as screen.restart_ks instead of just reloading panels

* move self.battery_percentage() to end of reload_icons this ensures that when a theme is changed the icon is updated instead of waiting for the timeout to update the icon again

* remove left over commented out code

* only call self.battery_percentage when config is true

* adjust tooltip message

* split creatation of elements from updating elements

* change print to logging.debug, handle rouding for percentage in the f-string

* remove code that was moved to `attery_init()`, only destroy icon element when updating icons/percentage text, remove redundant calls to `.pack_start` (just call it once after setting the icon).

* only create battery_update timer if config setting is true

* new material icons remove old icons

* `self.battery_init() in `__init__` def

* fix: lint

* refactors

* style: update icons to follow themes

* refactor: remove config, make the show/hide automatic

* style: bigger battery icons for z-bolt and colorized

---------

Co-authored-by: MrTylerjet <MrTylerjet@gmail.com>
2024-10-09 17:34:33 -03:00
Alfredo Monclus 71eef9ee1f fix(base_panel): handle pixbuf is None, this would happen if the theme was incomplete and didn't load 2024-10-01 19:55:06 -03:00
Alfredo Monclus 40b5fbf2cf fix(job_status): animation timeout 2024-09-28 13:20:46 -03:00
Alfredo Monclus ac5e7ae065 refactor(job_status): initialize vars separately 2024-09-28 01:41:09 -03:00
Alfredo Monclus 832a86ed6e fix: shutdown not working when not connected 2024-09-23 21:12:25 -03:00
Alfredo Monclus c20d0a2f84 fix: keyboard getting doubled if switching entry via the input switch icon
got mistakenly removed in previous commit 585f477e51
2024-09-21 05:28:21 -03:00
Alfredo Monclus 585f477e51 fix: keyboard not switching entry 2024-09-20 19:16:21 -03:00
Alfredo Monclus 274fc2b263 feat: add float option to the keypad 2024-09-20 19:16:21 -03:00
Alfredo Monclus 7b857ff991 fix: autoscroll now works if the entry is at the very bottom of the scroll
the delay is needed because the osk will change the scrolledwindow adjustment, and it's only possible to scroll down more after the keyboard has been shown
2024-09-20 19:16:21 -03:00
Alfredo Monclus 5d806a82da feat: add auto alpha to keypad switching if hinted the type in the params 2024-09-20 19:16:21 -03:00
Alfredo Monclus 822f5400cf feat: add keyboard to keypad switchs to macro panel 2024-09-20 19:16:21 -03:00
Alfredo Monclus d8479220f3 fix(network): detection of some security types 2024-09-20 16:32:16 -03:00
Alfredo Monclus 768bbcd285 fix(job_status): close fullscren dialog automatically on state changes
fixes #1455
2024-09-20 11:01:51 -03:00
Alfredo Monclus 9854cc99cc fix(job_status): format of object height on metadata updates
fixes #1458
2024-09-20 11:01:47 -03:00
alfrix 3a3287145e fix: spoolman date parsing 2024-09-15 09:55:08 -03:00
Scott Mikutsky d99048d29f Only calls BED_MESH_CLEAR if bed_mesh enabled (#1460) 2024-09-04 12:45:39 -03:00
Alfredo Monclus d53f03dce4 fix: move z speed config
fixes #1450
2024-08-25 01:27:31 -03:00
Alfredo Monclus c6fca4f0f9 fix: pid_calibrate error for heater_generic
fixes #1452
2024-08-25 01:27:23 -03:00
Alfredo Monclus fca09e6004 feat(wifi): wpa-eap support (#1449) 2024-08-25 00:38:20 -03:00
Alfredo Monclus 2c3e0f6c90 refactor(extrude): only open temp panel after sending the command and checking failed
this should allow people to handle the situation without creating an extra setting
close #1434
2024-08-01 15:59:11 -03:00
Alfredo Monclus ab6c7aca47 fix(gcodes): handling of long strings in print confirm
close #1436
2024-07-28 15:43:43 -03:00
Alfredo Monclus cc0bc3bc89 fix(wifi): wpa-owe
close #1435
2024-07-20 16:37:30 -03:00
Alfredo Monclus f4992e1146 fix(job_status): slicer time in extra info not being updated 2024-07-14 23:43:41 -03:00
Alfredo Monclus a17ab8e10e style(job_status): set hexpand to button thumbnail as otherwise sometimes will not grows to the proper size 2024-07-14 18:51:57 -03:00
Alfredo Monclus a4f45f3718 style(job_status): add unit to height if there is enough space 2024-07-14 18:47:01 -03:00
Alfredo Monclus b58471c505 fix(job_status): deprecate calculation of layers from height
if adaptive layers or any other technique like non-planar is used,
this would be completely wrong, so i would prefer not to show up wrong information,
so it's up to the user to provide the correct info, in the docs there is the needed setup

close #1426 close #1415
2024-07-14 18:24:20 -03:00
Alfredo Monclus 1b13f61709 fix(base_panel): do not show printer select if only 1 is configured
close #1429
2024-07-10 10:16:16 -03:00
Alfredo Monclus 184d20ef98 refactor(job_status): return early if the filename has not changed 2024-07-09 20:18:30 -03:00
Alfredo Monclus 8210a15e4b refactor(job_status): time estimation
Even if we are very confident in the estimate, such as when there is previous historic data,
variables like speed factor and possible excluded objects can impact the accuracy.
Taking these cases into account seems to be tricky.
To address this, I revised the  weightings of my previous formula based on practical considerations and observations.
2024-07-09 20:18:30 -03:00
Alfredo Monclus 243e67609b refactor: remove min width of heater-list temp
it's not needed since the rewrite of update_temp
2024-07-07 14:41:41 -03:00
Alfredo Monclus f9392e674f fix(extrude): fixes if no min_extrude defined #1416 2024-07-07 13:25:30 -03:00
Alfredo Monclus 7bf4e5baed feat(extrude): wait for temp or open temp panel automatically close #1416 2024-07-06 16:58:07 -03:00
Alfredo Monclus 1f2bd4cf72 refactor(dialogs): make button padding smaller and hexpand prompt buttons 2024-07-06 16:14:35 -03:00
Alfredo Monclus c53b0e27a4 feat(extrude): show more filament sensors (up to 9)
removes the enable switch if there are too many sensors, to at least show them
2024-07-06 14:57:40 -03:00
Alfredo Monclus 7aa6e06ed4 fix(temperature): improved and fixed auto select 2024-07-06 11:15:50 -03:00
Alfredo Monclus 52139326a9 feat(notifications): change icon if warnings were issued 2024-07-06 11:15:50 -03:00
Alfredo Monclus fde41e85dd feat(notifications): add clear close #1178 2024-07-06 11:15:50 -03:00
Alfredo Monclus 2036512064 fix(base_panel): printer select button shouldn't be sensitive when showing as current 2024-07-06 11:08:17 -03:00
Alfredo Monclus af6e798be6 style(gcodes): tweak margin and paddings of the thumbnail view, use up to 3 lines 2024-07-06 11:08:17 -03:00
Marcus Wu 317bf0483c fix(extrude): update only filament sensors within the limit (#1421) 2024-07-05 20:57:06 -03:00
Alfredo Monclus fd0ccfdbab refactor: completely ignore gcode responses with temps:
i can't think of a reason to show this messages
2024-06-29 12:00:11 -03:00
Alfredo Monclus b8f48afb51 style(gcodes): on vertical while low res, save space by removing folder icon, and merging thumb and print button 2024-06-29 12:00:11 -03:00
Alfredo Monclus 2d6c3d7d8b fix(system): re-request if no info is available, show message if fails 2024-06-27 15:04:56 -03:00
Alfredo Monclus 5602d72ff5 refactor(job_status): split metadata update into smaller methods 2024-06-27 13:31:22 -03:00
Alfredo Monclus 733cda93ea style(job_status): if there is no lcd_message center the filename 2024-06-24 21:47:35 -03:00
Alfredo Monclus cd0b519833 style: hide the printer name is it's just the default Printer 2024-06-24 21:30:08 -03:00