Arksine
8440a10b9e
extract_metadata: attempt to parse object height from PrusaSlicer comments
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-26 11:44:18 -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
d1c0cdf65b
docs: Fix incorrect option for klippy_uds_address
...
Resolves #20 .
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-16 11:27:20 -04:00
Arksine
36fb1da46d
docs: add missing documentation
...
- Document "enable_cors". Resolves #18 .
- Add a note that Moonraker is not aware of the gcode file path until Klippy successfully starts. Resolves #16 .
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-12 07:48:54 -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
733cf0afac
docs: Update metadata API documentation
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-09 11:32:37 -04:00
Arksine
57fe71c800
extract_metadata: parse slicer version during identifcation
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-09 08:29:22 -04:00
Arksine
ec86c7bfda
extract_metadata: optimize regex
...
Use calls to re.search() in place of re.findall() where appropriate.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-08 17:29:08 -04:00
Arksine
ad8680be38
extract_metadata: Add support for IceSL slicer
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-08 12:49:42 -04:00
Arksine
805821c928
extract_metadata: extract first layer temperatures
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-08 11:33:10 -04:00
Arksine
e38f63254f
extract_metadata: extract basic metadata when slicer is unknown
...
It is possible to extract some metatdata, such as layer height, from bare gcode script.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-08 08:41:09 -04:00
Arksine
97cb072981
docs: Add documentation for "delete_file" websocket API.
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-07 12:51:39 -04:00
Arksine
4285ea7348
test client: Add jstree file management support
...
This allows for easier regression testing of the full file management API.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-07 12:38:15 -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
2a967303cb
test client: add support for websocket file delete
...
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
c122bd68e0
docs: document API changes
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-03 15:26:46 -04:00
Arksine
59277f8b7a
test_client: Update websocket APIs
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-03 14:43:13 -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
d59d1e5f7f
docs: document new "notify_metadata_update" notification
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-09-01 11:37:06 -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
005caba234
test_client: log metadata notifications
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-30 15:40:56 -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
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