Arksine
2c5bb4710e
websockets: Add metadata update notification
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-30 15:30:38 -04:00
Arksine
bcb7e17105
extract_metadata: Set slicer type to "Unknown" if not able to detect
...
Signed-off-by: Eric Callahan <akrsine.code@gmail.com>
2020-08-30 15:28:21 -04:00
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
9613bb01de
extract_metadata: include "days" when calculating time for PrusaSlicer
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-28 14:26:08 -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
d021eddb16
docs: Fix typo in readme
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-22 20:47:56 -04:00
Arksine
1aa12e4ff1
utils: Add support for a QueueLogger
...
Logging to a file has the potential to block a the main thread, a QueueLogger resolves this by forwarding logging request to a secondary thread.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-19 10:59:07 -04:00
Arksine
55919fc7d3
docs: update the PANELDUE_BEEP macro documentation
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-18 08:59:32 -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
5a6f1ae062
websockets: don't handle ServerError in local callbacks
...
They can propogate back to the JSONRPC.execute_method() where they will be correctly handled.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-17 20:16:03 -04:00
Arksine
8b02797ede
test client: use 'gcode_move' in place of 'gcode'
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-17 19:56:42 -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
88bbd66a3b
docs: document latest API changes
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-16 19:58:15 -04:00
Arksine
a17e1d4056
test client: support "disconnect" notification
...
The webhooks module may now be used to retreive "ready" and "shutdown" state
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-16 18:08:41 -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
56bd9a61ea
moonraker: reorganize initialization
...
This optimized version should initialize faster as it doesn't rely on an additional Periodic Callback when Klippy is detected as ready.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-16 18:08:41 -04:00
Arksine
76493215c5
moonraker: move klippy connection logic to its own class
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-16 18:08:41 -04:00
Arksine
a3c0f06c5f
docs: Update API documentation
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-16 18:08:41 -04:00
Arksine
f9f70ce989
test client: Update for compatibility with Klippy API changes
...
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
5b6d4371c8
moonraker: convert missed legacy strings to f-strings
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-13 19:23:17 -04:00
Arksine
e9cd86f468
docs: add "confirmed_macros" option to paneldue documentation
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-12 17:53:17 -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
d04a419a80
docs: Update documentation for 0.1 release
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 21:27:41 -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
b3f02a73a4
extract_metadata: Improve error reporting
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 14:28:59 -04:00
Arksine
1d520310ac
utils: update git describe arguments
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 14:28:59 -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
de1a79a7ca
docs: update API documentation regarding file list notification
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 14:21:28 -04:00
Arksine
82fbee2bc0
test client: Update to handle new file list notification
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 14:21:27 -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
6dc43f7e12
moonraker: replace "check_available" with "check_available_objects"
...
There "check_available" endpoint no longer exists in Klippy, so use "objects/list" instead. If Klippy is not properly configured Moonraker will log the result.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:28 -04:00
Arksine
0775f3d0c6
moonraker: Connect to Klippy as a client
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:28 -04:00
Arksine
e1addb16fd
utils: remove unused SocketLoggingHandler
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:28 -04:00
Arksine
62e5f85473
moonraker: use tornado's iostream wrapper for klippy connection
...
This reduces the amount of code needed to handle the connection and adds more robust error handling. This also prepares moonraker for the eventual transition of Klippy hosting the server socket.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-11 08:38:28 -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
a4638f6c21
moonraker: Improve connection error logging
...
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