Arksine
f2fb8d33d4
file_manager: store file "modified" time as unix time
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-10-21 17:53:08 -04:00
Arksine
8a6503da8a
datastore: Add timestamp (in unix time) field to each line in the gcode store
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-10-18 16:52:08 -04:00
Arksine
ab35346f24
moonraker: Add method to retreive host info
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-10-13 07:53:40 -04:00
Arksine
28844cb41d
PanelDue: Dump recieved gcode queue on restart
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-10-11 09:09:17 -04:00
Arksine
8fcccfd46e
moonraker: Add "/server/restart" endpoint
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-10-11 09:09:17 -04:00
Arksine
f220e1b2ee
moonraker: remove stale objects from subscription tracking
...
This prevents moonraker from subscribing to unknown printer objects on startup.
SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
2020-10-10 08:52:44 -04:00
Arksine
346c3ad2a0
PanelDue: Make checksums optional
...
Some displays which emulate PD firmware do not use checksums.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-10-08 14:28:15 -04:00
Arksine
7a013a42f7
machine: Use shutdown -r command to reboot
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-10-05 18:23:58 -04:00
Arksine
264e708c1d
file_manager: fix typo in directory check
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-10-05 18:16:10 -04:00
Arksine
620fb356cc
file_manager: Update the internal file list when get_directory
is called
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-10-05 17:57:18 -04:00
Arksine
7e3f236393
data_store: add "/server/gcode_store" endpoint
...
Clients may use this API to fetch up to 1000 lines of cached gocde responses.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-28 14:57:44 -04:00
Arksine
b8fc6f5130
plugins: rename "temperature_store" plugin to "data_store".
...
This is in preparation for additional storage functionality.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-28 14:08:40 -04:00
Arksine
756492f349
moonraker: add "/server/info" endpoint
...
This method provides basic server information, such as loaded plugins and the state of the UDS connection to Klippy.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-26 08:34:05 -04:00
Arksine
6905515f3d
shell_command: add ability to cancel a running process
...
Also adds an indefinite timeout if the timeout is specified as "None".
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-26 06:14:35 -04:00
Arksine
3d1faebf15
moonraker: load_plugin() fix
...
Make sure that the correct config section is loaded when "load_plugin" is called.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-26 06:09:08 -04:00
Arksine
8b08b03fbf
app: add max_upload_size configuration option
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-11 06:27:48 -04:00
Arksine
36c82d0c7f
file_manager: simplify directory registration
...
Now that the file_manager directly handles DELETE file requests, it is not necessary have the HTTP file handler perform any checks. Thus it is no longer required to pass a "can_delete" parameter.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-07 12:38:15 -04:00
Arksine
ae49dfe8f2
file_manager: add websocket method for file delete
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-07 12:38:15 -04:00
Arksine
7078d5c980
file_manager: update delete_file method
...
This method is now the primary means of deleting files, as it includes checks to make sure that the delete is allowed.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-07 12:38:15 -04:00
Arksine
059f5d6a73
app: allow local handlers to select their supported protocol
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-07 12:38:15 -04:00
jruthe
c523f35c5e
Fixing paths on power plugin\
...
Signed off by: Jordan Ruthe
2020-09-05 14:17:45 -04:00
Arksine
8eaef1e559
power: Refactor APIs
...
Register APIs in the "machine/gpio_power" namespace.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-03 14:01:34 -04:00
Arksine
5904c2daf5
temperature_store: Update API registration
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-03 14:01:34 -04:00
Arksine
33b965644b
machine: Update API registration
...
Signed-off- by: Eric Callahan <arksine.code@gmail.com>
2020-09-03 14:01:34 -04:00
Arksine
34008569dd
klippy_apis: Update API registration
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-03 14:01:34 -04:00
Arksine
371c15aa33
file_manager: update API registration
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-03 14:01:34 -04:00
Arksine
b034485ce8
authorization: update API registration
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-03 14:01:34 -04:00
Arksine
76ea4d25a4
app: refactor websocket handler registration
...
Websocket APIs are now generated using traditional namespaces, for example "printer.gcode.script" rather than "post_printer_gcode_script". Local endpoints that register multiple requests methods will have the method prefixed (ie:. "server.files.get_directory", "server.files.post_directory", "server.files.delete_directory")
Signed-off-by: Eric Callahan
2020-09-03 14:01:34 -04:00
Arksine
fdec6277eb
moonraker: handle Klippy disconnects during initialization
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-03 12:27:13 -04:00
Arksine
2a34986acb
file_manager: check for unsuccessful attempt at metadata extraction
...
If the metadata script encoutners an error it will return an empty dict for the "metadata" item. Do not update the metadata storage or send a notification if the dict is empty.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-02 17:13:25 -04:00
Arksine
28977bd579
moonraker: Don't use a PeriodicCallback for the init routine
...
The init function blocks, making it reentrant. Use "call_later" instead.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-01 08:49:52 -04:00
Arksine
f9b1e2922d
moonraker: speed up intialization procedure
...
Attempt to reconnect every 250ms when disconnected. Once connected, attempt to initialize every 250ms.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-01 07:41:53 -04:00
Arksine
960334d087
moonraker: stop the background logger prior to exiting
...
This allows all records on the queue to be logged before exiting the program.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-31 15:30:30 -04:00
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
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
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
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
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
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
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