Eric Callahan
dddd968f82
simplyprint: unknown temperature fix
...
Omit temperature data for SBCs that Moonraker
cannot report.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-11-15 19:20:46 -05:00
Eric Callahan
07388f4d38
simplyprint: add support for gcode acknowledgements
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-11-15 19:20:45 -05:00
Eric Callahan
0afbefc962
simplyprint: fix linter errors
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-10-07 10:33:56 -04:00
Eric Callahan
f99e5b0bea
utils: add support for msgspec with stdlib json fallback
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-10-06 18:20:28 -04:00
Eric Callahan
1b9f29db13
websockets: move JsonRPC and BaseSocketClient to common
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-24 07:08:43 -05:00
Eric Callahan
6d73c60a38
moonraker: move common classes to common.py
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-24 07:08:41 -05:00
Eric Callahan
160f6d64be
simplyprint: fix error on import
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-24 07:00:47 -05:00
Eric Callahan
0f8638fec7
components: correct imports
...
All imports must now be relative to work correctly with the
moonraker parent package.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-22 12:16:27 -05:00
Eric Callahan
5661b0216c
simplyprint: remove call to escape_url
...
The url received from SimplyPrint should already be escaped. It
isn't possibly to reliably quote a full url if any of the parts contain
special characters.
This commit also corrects some minor type checking issues.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-11 11:43:16 -05:00
Eric Callahan
bf63798bb1
simplyprint: fix queue handler import
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-01-09 07:12:08 -05:00
Albert Møller Nielsen
c61ff8b252
simplyprint: preprare for release
...
Signed-off-by: Albert Møller Nielsen <albert@simplyprint.io>
2022-11-20 19:16:08 -05:00
Eric Callahan
f089794adc
websockets: create a client base class
...
Separate out code that applies to both standard websockets and the
future unix socket implementation.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-11-09 07:15:33 -05:00
Eric Callahan
86fc1057f7
server: deprecate debug logging option
...
Add a debug option to the command line to enable
debug features.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
91e48200d6
simplyprint: implement direct layer detection
...
Klipper now has the ability to report the current layer on
properly configured slicers. Prefer this value if available,
otherwise fall back to layer detection.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-11 19:29:36 -04:00
Eric Callahan
48674a46e1
simplyprint: add support for configured ambient sensors
...
Users may specify a dedicated ambient sensor in the
[simplyprint] configuration. If the specified sensor is
invalid or no sensor is specified ambient detection
will fall back to an estimate using the extruder.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-11 19:29:36 -04:00
Eric Callahan
785213b2b3
simplyprint: bring up AI stream to correct state
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-11 18:01:57 -04:00
Eric Callahan
6e121c2221
simplyprint: implement "webcam_stream" demand
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-11 06:07:32 -04:00
Eric Callahan
d5fa40df87
simplyprint: implement ping timer
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-11 06:07:32 -04:00
Eric Callahan
f8d15d3baa
simplyprint: remove keepalive
...
This will be replaced by a custom ping timer to the backend.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-11 06:07:31 -04:00
Eric Callahan
5d856b9c49
simplyprint: suppress write exceptions
...
Its possible for the websocket client to disconnect before
read_message() returns None. Await all calls to write_message()
to handle websocket closed exceptions.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-09-05 05:59:02 -04:00
Eric Callahan
d04e99a8ec
simplyprint: automated file reset bugfix
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-08-28 13:45:21 -04:00
Eric Callahan
7f2d43de3d
simplyprint: automate file reset for sp uploads
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-08-28 12:23:03 -04:00
Eric Callahan
3a03f48e0f
simplyprint: report error messages
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-08-28 11:16:52 -04:00
Eric Callahan
413e3b2f4f
simplyprint: add power device fallback
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-08-08 19:48:13 -04:00
Eric Callahan
a9345d19fa
simplyprint: fix incorrect directive
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-08-08 17:37:35 -04:00
Eric Callahan
39f26dc31a
simplyprint: silence stream errors
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-08-08 17:02:20 -04:00
Eric Callahan
e0cf635d34
simplyprint: websocket write fix
...
Gracefully handle websocket closed conditions.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-07-30 15:16:52 -04:00
Eric Callahan
c251a9d7ed
simplyprint: initial implementation
...
This adds initial support for connecting Moonraker to the SimplyPrint
service. Currently the connection defaults to SimplyPrint's dev/test
endpoint, this will be changed prior to official release.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-07-28 08:06:49 -04:00