95 Commits

Author SHA1 Message Date
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 
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 
fix 
2023-03-11 16:40:06 -06:00
alfrix
dfe1ac8d2c macros: fix list not loading when there are extra spaces fixes 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 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 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 
2022-10-14 10:19:44 -03:00
Laurenz
2cce477e5b
Add current heater power % to job status ()
* 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 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 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 
fix 
2022-05-31 11:14:42 -03:00
alfrix
5a36729b76 PEP8, typos and warnings fixes 2022-05-31 11:14:42 -03:00
alfrix
7c8d4ea4d7 extrude: add filament sensor support 2022-05-31 11:14:42 -03:00
Mikko Gozalo
fa0d696120 Add Input Shaper panel
Original panel by Mikko Gozalo

Modified layour to fit 16:9 screens
Auto-home
Ability to measure X and Y independently
Get the current active values not the values from the config
Ask for save
Other minor tweaks

close 

Co-authored-by: alfrix <alfredomonclus@gmail.com>
2022-05-31 11:14:42 -03:00
Alfredo Monclus
31546f0020
Improve Job status ()
Adds heater_generic and/or temp_sensors besides extruder/bed (because of the limited space maybe only 1)
Temps are now buttons and act as a shortcut to the temp panel
Adds fan_generic to the fan label and it's now a shortcut to the fan panel
The colors and size of the progress circle were changed to be more subtle.
Margins between items were augmented, because they are buttons now
Adds 3 information pages: move, extrusion and time:

    move can be opened with speed or z buttons
    time with elapsed/remaining buttons
    extrusion with the extrude_factor / flowrate button
2022-05-01 12:22:58 -03:00
alfrix
a77134d63b fan: prevent crash when using unicode characters 2022-04-23 10:46:19 -03:00
alfrix
c763bd5a5b fans: fix for machines without [fan] 2022-04-20 14:54:47 -03:00
alfrix
8ba28fde1c Add firmware retraction panel close
Co-authored-by: tonywright
2022-04-11 23:04:29 -03:00
alfrix
d945ef8b0a printer: fix some issues with the graph 2022-03-25 12:06:08 -03:00
alfrix
48b2ef513f Fix files and printer memory leaks fixes 2022-03-20 12:11:41 -03:00
Alfredo Monclus
046e03b883
Improve error messages ()
Shows if the issue is with moonraker or klipper
if the issue is with klipper and there is info about it then show it
Reconnect now has a counter and it's visible to the user
2022-03-18 20:18:53 -03:00
Alfredo Monclus
a893f47604
Show fan speed according to max_power and off_below ()
fixes 
2022-03-15 12:41:47 -03:00
alfrix
5899c8feab Optimize imports 2022-03-15 12:41:21 -03:00