106 Commits

Author SHA1 Message Date
alfrix
eecb41df93 base_panel and printer optimizations 2024-01-13 00:46:02 -03:00
alfrix
98da293cee refactor job_status and titlebar_items to allow multiple extruders 2024-01-10 23:30:39 -03:00
Chad Condon
422363ebb9
Hide LEDs with leading underscores (#1145) 2023-10-15 10:45:18 -03:00
alfrix
70f1a5d935 printer: add macro list to be used for menu enable, this should improve multi-printer separation 2023-10-03 00:05:08 -03:00
Vasilyev_Andrey
87d09036ee
Led light control, close #991 (#1106)
* feature: add leds panel

* Various refactors and improvements

* lint fixes

* led: use more columns for the selector

* leds: name in the title

* mainsail presets

* change sliders to horizontal to avoid visual bug, simplify defaults

* led: add a color preview and simplify methods to fix some issues

* simplify presets move all the logic to the panel

* led: change presets from names to previews

* preview label shows color, add vertical mode

* led: colored previews as rectangles instead of circles

---------

Co-authored-by: alfrix <alfredomonclus@gmail.com>
2023-09-24 17:44:29 -03:00
alfrix
e01b6e5f26 macros: hide the panel if there are no elegible macros 2023-08-31 22:27:12 -03:00
alfrix
6be0a2931f spoolman: change initialization to be equal to the rest of components 2023-08-30 00:19:23 -03:00
alfrix
f3c2736f9f refactor temp updates for devices fix extruder_stepper icon error 2023-08-26 13:05:44 -03:00
Blonďák
af1de12f28
Spoolman support close #1060
Refactor post_requrest
Switching to TreeView
More spool info
redesign toggle buttons
Allow spoolman while printing
Styling checkbox as switch
render Toggle switch-like
Fixed wrong timezones
Filtering spools
Removed translations of Spoolman
Spool image can be overided in theme
Added switch-on/off symbols to toggle
rename iter to i to avoid shadowing built-in function
remove redundant parenthesis
convert spoolcompare to static
merge check and treeview shared props
reduce spacing of buttons very useful for vertical/portrait
fix issue with remainings
add spoolman shortcut to extrude
Using backports.zoneinfo for python < 3.9
use decorators for properties
extract format_date function
change top row
last used sort
rebase on upstream
Fix for never used spools


Co-authored-by: alfrix <alfredomonclus@gmail.com>
2023-08-19 18:43:45 -03:00
alfrix
93bb6aeb65 tempstore initialization fixup 2023-08-18 11:48:37 -03:00
alfrix
4800b56492 refactor tempstore initialization
fixes #1074
2023-08-18 11:48:37 -03:00
alfrix
9ba8d04861 printer: save and use available commands 2023-08-18 11:48:37 -03:00
alfrix
8053e97d10 camera: add support for moonraker cameras, deprecates camera_url
this also adds support for flipping and rotation (configured in moonraker)
close #976
2023-08-18 11:48:37 -03:00
alfrix
a149796b19 reduce the use of contextlib 2023-07-30 12:22:58 -03:00
alfrix
d6b700381b fix possible issue with the mesh profile is not complete 2023-07-07 23:15:07 -03:00
alfrix
4920720c99 return False on Glib functions 2023-06-16 10:05:43 -03:00
alfrix
1462c8d08c printer: refactor with early return and safer state evaluate 2023-05-28 09:11:01 -06:00
alfrix
282799c8cb bed_mesh: fix points not working
consider implementing a view button to not forcibly load a mesh to view it
2023-04-05 05:50:32 -06:00
alfrix
87c3f03719 fix issues caused by dfe1ac8d
fix #924
fix #923
2023-03-11 16:40:06 -06:00
alfrix
dfe1ac8d2c macros: fix list not loading when there are extra spaces fixes #909 2023-03-10 20:03:28 -06:00
alfrix
0f0c6f9b6e always maintain printers data, should avoid a bunch of issues 2023-03-09 07:32:46 -06:00
alfrix
e4d5cd65ce fix a couple of errors that may happen if klipper fails to start or takes too long 2022-12-11 19:22:45 -03:00
alfrix
904dd24c10 tempstore get the max length configured in moonraker 2022-12-04 13:56:33 -03:00
alfrix
f52b52f76a main and temp: less tempstore dependency 2022-12-04 12:59:59 -03:00
alfrix
72599b5ba7 moonraker tempstore takes a while to register device changes, call it again after a few seconds
with this change there should be no need to reinit on every state change, this was the cause of missing devices after init
2022-12-04 01:07:58 -03:00
alfrix
36faaa153a fix pause panel appearing after issuing a pauese while not printing fixes #832 2022-12-03 20:33:38 -03:00
alfrix
f8cde7bfe1 Add busy state, and disable buttons that usually take time during the state 2022-11-26 00:17:30 -03:00
alfrix
bdd3e0ba1b Cleanups 2022-11-20 22:41:22 -03:00
alfrix
c4c7e50314 printer: create get_probe to support other probe types 2022-11-20 11:07:24 -03:00
alfrix
fc0f153023 reorder imports 2022-11-20 07:28:05 -03:00
alfrix
7ca37c56b6 websocket: refactor how the connection is handled 2022-11-18 12:56:05 -03:00
alfrix
675f28b318 Use GLib.idle_add instead of Gdk.threads_add_idle 2022-11-18 02:51:41 -03:00
alfrix
380df961e5 cleanup dead code 2022-11-18 01:17:57 -03:00
alfrix
2c30bdeddf printer: cleanup 2022-11-18 01:17:57 -03:00
alfrix
128fee5e96 screen: cleanup panel subscriptions 2022-11-18 01:17:57 -03:00
alfrix
18d8f835a9 always reinit printer on state changes 2022-11-18 00:53:53 -03:00
alfrix
6b1fd23e35 screen: reduce the complexity of the status changes close #792 2022-11-18 00:53:53 -03:00
alfrix
b8e819629a log: reduce spam 2022-11-10 07:15:04 -03:00
alfrix
0620d660f5 Change how the printer state is handled 2022-10-27 20:54:13 -03:00
alfrix
978bb72e20 Fix: Printer not connecting if [pause_resume] is missing
fix #752
2022-10-14 10:19:44 -03:00
Laurenz
2cce477e5b
Add current heater power % to job status (#708)
* Add current heater power % to job status

* Add show_heater_power config option and move update_temp()s to ScreenPanel

* Add the option to the UI config instead of the docs

* Prefer extra items on job_status over the power

There is not a lot of space, it's a trade off, and people will likely prefer extra_items

* Remove the comma, none of the other buttons have it

* job_status: inherit the parent config

* screen: create reload_panels to avoid some service restarts

* extrude: fix power breaking multi-extruder setups

* main and temp: remove degrees char from the table

* main and temp: revert removal of the header

Co-authored-by: alfrix <alfredomonclus@gmail.com>
2022-09-09 11:34:50 -03:00
alfrix
abe12cca30 printer: fix issue that could cause the panels to not show up on startup if moonraker is not connected 2022-09-05 21:02:04 -03:00
alfrix
e332ccc22a pins: assign initial value if configured fix #689 2022-08-01 21:27:19 -03:00
alfrix
a0cff7ec56 simplify name spliting 2022-08-01 12:23:40 -03:00
alfrix
c047bed518 bed_level: hide the panel if bed_screws or screws_tilt_calculate are not defined
there are printers with fixed beds that don't need this panel
2022-08-01 12:23:40 -03:00
alfrix
25e6110dab output_pin panel close #546 2022-08-01 12:23:40 -03:00
alfrix
6510b2ec6b Refactor
Use f-strings
Avoid unnecessary casts to str()bool()int()
Ensure file closure
Merge nested ifs
Simplify for-assigns-appends with comprehensions and internal functions
Avoid shadowing internal function names
Initialize variables
Return value directly instead of assign then return
Make some methods static
2022-08-01 12:23:40 -03:00
alfrix
5a02ac75ae basic support for extruder_stepper 2022-07-03 12:03:50 -03:00
alfrix
0f4f56bb9f Fix paused state
close #607
fix #611
2022-05-31 11:14:42 -03:00
alfrix
5a36729b76 PEP8, typos and warnings fixes 2022-05-31 11:14:42 -03:00