Eric Callahan
8b2d9b26f5
app: streamline endpoint registration
...
Refactor endpoint registration to reduce duplicated code.
Rename some APIDefinition attributes for clarity.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-12-16 16:21:21 -05:00
Eric Callahan
7de61eb113
klippy_connection: track connection state with an enum
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-12-16 16:21:21 -05:00
Eric Callahan
b18e9cc222
all: Replace strings with RequestType flags
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-12-16 16:21:20 -05:00
Eric Callahan
27dddd62ac
extensions: support agent method registration
...
Create a websocket endpoint that allows clients identified as
agents to register remote methods with Klipper.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-11-07 11:27:11 -05:00
Eric Callahan
ddd4a02e9c
server: fix linter errors
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-10-07 10:30:08 -04:00
Eric Callahan
51f4d4b888
eventloop: add support for uvloop
...
Signed-off-by: Eric Callahan <arskine.code@gmail.com>
2023-10-06 18:20:28 -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
a0a50442f7
server: add support for enironment variables
...
Allow all command line arguments to be specificed as an
environment variable. If both the command line argument
and environment variable is present the command line argument
takes precedence.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-07-25 16:27:11 -04:00
Eric Callahan
1fadae885e
server: allow commandline unix socket configuration
...
Add a command line option that allows the installation to specify
the exact path to Moonraker's unix domain server socket. The
default location remains at:
<data_path>/comms/moonraker.sock
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-07-22 06:17:56 -04:00
Eric Callahan
ac876b9271
server: bump API version to 1.3.0
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-07-15 16:15:45 -04:00
Eric Callahan
f6770e2865
server: improve event exception handling
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-06-26 16:48:48 -04:00
Eric Callahan
02d66a346d
server: add support for instance uuids
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-06-21 11:03:07 -04:00
Eric Callahan
cd4fdfb7b6
utils: report additional git repo data
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-05-26 10:49:58 -04: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
a02209443e
server: remove duplicates when loading components
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-22 18:08:51 -05:00
Eric Callahan
2cda75ff2c
utils: simplify sentinel object
...
Use an enum to represent the sentinel rather than a singleton object.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-22 18:08:50 -05:00
Eric Callahan
b9a17e07e9
moonraker: convert code to a package
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2023-02-22 12:16:26 -05:00
Eric Callahan
a5d63db9a6
server: rename moonraker.py to server.py
...
Signed-off-by: Eric Callahan <arksiine.code@gmail.com>
2023-02-21 18:05:01 -05:00