Arksine
304e861a28
file_manager: refactor metadata extraction
...
Move logic for managine metadata to its own class. Allow 3 retries if extraction fails, and send a printer event if metadata is updated due to an added file.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-30 15:28:21 -04:00
Arksine
16269c1a49
temperature_store: correctly handle subscribed diffs
...
When processing a status update, default the temperature and target to the last received value.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-29 14:12:23 -04:00
Arksine
5b87c43535
moonraker: send "client_info" after initial connection to Klippy
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-26 07:34:29 -04:00
Arksine
f338bccc3b
paneldue: Add support for the piezo buzzer
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-18 08:48:57 -04:00
Arksine
2848b4e9c1
paneldue: 'gcode' status is now in 'gcode_move'
...
Also toolhead.status is no longer available, use idle_timeout.state.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-17 19:55:53 -04:00
Arksine
279d53afde
moonraker: rework klippy state events
...
Emit specific events for each klippy state rather than one for all of them.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-16 18:08:41 -04:00
Arksine
8840434c7c
paneldue: use klippy_apis module
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-16 18:08:41 -04:00
Arksine
6fb4cdca62
termperature_store: use klippy_apis module
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-15 14:19:19 -04:00
Arksine
4a57dba586
moonraker: update protocol for data received from klippy
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-15 14:19:19 -04:00
Arksine
291f2b0e91
klippy_apis: new module replacing deprecated "gcode_apis"
...
Like gcode_apis, the klippy_apis module registers Web API aliases for particular gcodes. In addition, this module presents an interface where moonraker can call Klippy APIs directly.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-15 14:19:19 -04:00
Arksine
43b057c40c
moonraker: klippy requests no longer take a "request method"
...
Klippy rpc methods now accept either GET or POST, the method will be executed.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-15 08:38:06 -04:00
Arksine
7cae2f4aac
paneldue: add confirmation box option to macros
...
This allows users to specify a "confirmed_macros" that wil pop up a message box requiring confirmation before proceeding. Useful for restart and firmware_restart to prevent accidental execution.
Also do not raise an exception when Klippy disconnects after a restart or firmware_restart.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-12 17:25:54 -04:00
Arksine
a7147a44ca
moonraker: refactor "make_request"
...
The make_request() method is now awaitable and returns the result directly vs the previous behavior of returning a request that was awaited.
There is no longer a need to check the result to see if it is an error, exceptions are raised if an error is detected.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-12 08:43:37 -04:00
Arksine
e78a2e3e41
gcode_apis: handle restart exceptions
...
It is expected that the Klippy will disconnect when a restart request is sent. Handle those exceptions so they return an acknowledgement.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 20:50:58 -04:00
Arksine
2c332a968f
file_manager: require base paths be located within home directory
...
They however cannot be the home directory.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 20:34:20 -04:00
Arksine
7cd22804dd
moonraker: replace legacy string interpolation with f-strings
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 14:28:41 -04:00
Arksine
7441da4b57
file_manager: refactor notify_filelist_changed()
...
This brings more consistency to the notification.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 14:21:27 -04:00
Arksine
b92000dd46
moonraker: Use file_manager to update mutable endpoints
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:28 -04:00
Arksine
0abfc76871
temperature_store: Add configparser support
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:28 -04:00
Arksine
470cc13b0e
shell_command: Add configparser support
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:28 -04:00
Arksine
6b45c0c1d8
power: Add configparser support
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:28 -04:00
Arksine
f114985dc6
paneldue: Add configparser support
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:28 -04:00
Arksine
52907155d2
machine: Add configparser support
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:28 -04:00
Arksine
5853f3f447
gcode_apis: Add configparser support
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:27 -04:00
Arksine
98b3c990e0
file_manager: Add configparser support
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:27 -04:00
Arksine
e2850ee77e
paneldue: fix incorrect default baudrate
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-05 21:10:30 -04:00
Arksine
9c76875896
file_manager: use print_stats to determine if an operation is safe
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-05 14:02:06 -04:00
Arksine
d235139e6b
paneldue: use the new "print_stats" module to check printing state
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-05 11:20:26 -04:00
Arksine
f082d4dd44
paneldue: Update to fetch status from Klipper's print_stats object
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-05 11:20:26 -04:00
Arksine
89fa9ba47e
gcode_apis: update "print start" API to use SDCARD_PRINT_FILE gcode
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-05 11:20:26 -04:00
Arksine
43d54f078e
file_manager: Restrict full access to "gcodes" and "config" paths
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-05 11:05:55 -04:00
Arksine
d572a13655
file_manager: refactor config file handling
...
Remove the "primary_config" option from the upload handler, as we no longer allow writes to printer.cfg unless it is located in the config path. We now assume that the config path is the main config, so all files there are located at /server/files/config/*.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-05 11:05:00 -04:00
Arksine
d768a30d47
temperature_store: remove stale temperature sensors from the "last_temps" dict
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-04 11:32:42 -04:00
Arksine
f0e388ccdc
file_manager: Add support for config examples
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-01 06:05:19 -04:00
Arksine
b6f8ba775c
file_manager: implement file_list_changed notifcation
...
This notification is moved from moonraker.py. Instead of sending a filelist, it now updates the file list and sends all relevant information to the client.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-01 06:05:19 -04:00
Arksine
e0fb261c12
file_manager: refactor upload logic
...
Break gcode and config file uploads into their own functions. Add a 'primary_config' argument to config file uploads. If set to true, the upload will overwrite printer.cfg.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-01 06:05:19 -04:00
Arksine
8b5c8786b4
file_manager: Verify that uploads are not written to folders outside of the "base" directory
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-01 06:05:19 -04:00
Arksine
9743772b45
file_manager: Add support for configuration files
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-01 06:05:19 -04:00
Arksine
bf1a666e20
file_manager: Allow the self.file_paths to contain paths to files
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-01 06:05:19 -04:00
Arksine
f0fa1295a7
file_manager: handle file upload processing
...
This implentation allows for uploads to different local paths by specifying a "root" argument in the form.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-01 06:05:19 -04:00
Arksine
1e018e9b92
temperature_store: directly request sensor data
...
Sensor information is no longer provided by the response to the "check_ready" remote procedure call. The temperature store now fetches the sensor data itself and sets up the subscription.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-31 08:42:07 -04:00
Arksine
efb9a9f649
power: remove blocking call to time.sleep()
...
Replace with coroutine friendly gen.sleep()
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-29 20:34:05 -04:00
Arksine
92d7d7c2b7
power: restrict lines to 80 chars, remove trailing whitespace
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-29 17:46:27 -04:00
jordanruthe
c589287e0b
power: printer power on/off control plugin
...
Sign-off-by: Jordan Ruthe <jordanruthe@gmail.com>
2020-07-27 14:08:48 -04:00
Arksine
879ddea0e5
file_manager: quote file name passed to metadata process
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-14 07:49:08 -04:00
Arksine
1d1edf33c3
file_manager: Use sys.executable to identify python env
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-14 07:39:05 -04:00
Arksine
6c58bba8c5
file_manager: Add debug logging to metadata response
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-14 07:22:19 -04:00
Arksine
1baa85d109
shell_command: Fix logging
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-14 07:22:19 -04:00
Arksine
29e7df38d0
file_manager: Add move and copy APIs
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-14 07:00:52 -04:00
Arksine
5754609203
file_manager: reject requests to delete a "root" directory
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-04 15:22:08 -04:00