Eric Callahan
d19471fd4d
announcements: implement list feeds endpoint
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-06-12 06:10:29 -04:00
Eric Callahan
14ec8472ef
ldap: fix group validation
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-06-11 17:06:54 -04:00
Eric Callahan
7780a8a09e
authorization: add ldap support
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-06-10 11:19:52 -04:00
Eric Callahan
f52df8c7ed
ldap: initial implementation
...
Introduce an ldap component that can be used authenticate
Moonraker users over ldap connections.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-06-10 11:19:52 -04:00
Eric Callahan
5081321a32
Revert "authorization: add LDAP support"
...
This reverts commit a86cbc77f6182198e1058752a8ee77a516b01b7e.
2022-06-08 06:23:19 -04:00
Eric Callahan
250b93e89c
git_deploy: fix install script parsing
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-06-08 06:13:17 -04:00
Eric Callahan
3b76d81155
machine: add sonar and crowsnest to allowed services
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-06-07 06:51:40 -04:00
Luca Schöneberg
a86cbc77f6
authorization: add LDAP support
...
Signed-off-by: Luca Schöneberg luca-schoeneberg@outlook.com
2022-06-07 06:46:08 -04:00
Eric Callahan
74d6e35166
Revert "job_queue: always initialize state to "ready""
...
This reverts commit d53cf27264cfa62d205400c2581b5536300b4a1c.
2022-06-01 17:37:03 -04:00
Eric Callahan
d53cf27264
job_queue: always initialize state to "ready"
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-05-22 06:02:46 -04:00
Eric Callahan
f15ec23c3a
http_client: increase max body size
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-05-21 06:27:56 -04:00
Eric Callahan
babfba1686
mqtt: allow unlimited connection attempts
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-05-12 19:37:33 -04:00
Pierre Bedell
3d9f5dc6d9
metadata: expanded IceSL's support
...
Signed-off-by: Pierre Bedell pierre.bedell@gmail.com
2022-05-09 12:22:20 -04:00
Richard Mitchell
56097a35ad
wled: Add extra control for wled effects
...
For the "Percent" preset the intensity controls the amount of the bar lit up 0-100
Work around issue when preset is re-enabled if sending intensity or speed while no preset is active
Removed control endpoint
Added missed toggle endpoint
Transition time to 0 for control changes
Signed-off-by: Richard Mitchell <richardjm+moonraker@gmail.com>
2022-05-09 06:32:14 -04:00
Eric Callahan
cd520ba917
http_client: immediately raise cancelled errors
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-23 14:55:49 -04:00
Eric Callahan
11beaa7076
metadata: read metadata after object processing
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-21 10:28:45 -04:00
Eric Callahan
6f2ce72b4c
metadata: add a UUID to extracted metadata
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-21 06:47:31 -04:00
Eric Callahan
c1eda1ef3d
http_client: modify download progress reporting
...
Report progress for each percentage change.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-21 06:37:52 -04:00
Eric Callahan
4be8e2e72f
database: fix decode exception handler
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-19 10:59:38 -04:00
Eric Callahan
65946ef857
job_queue: increase ready job delay
...
Delay for a full second before processing a job after
Klippy reports ready.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-19 06:23:02 -04:00
Eric Callahan
bbd5d8a1a1
history: add logging
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-19 06:22:58 -04:00
Eric Callahan
430c2550c5
job_state: add logging
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-19 06:18:42 -04:00
Eric Callahan
d3003a1584
machine: return default values for find public interface
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-15 17:27:36 -04:00
Eric Callahan
4666458793
websockets: simplify JSON-RPC execution
...
To accommodate access to multiple protocols Moonraker will always
require that the "params" field contain a dictionary, so reject any
other type as invalid. There is no need to expand keyword arguments,
simply pass the params dict to the callback.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-10 14:17:27 -04:00
Eric Callahan
236a7a7736
extensions: initial implementation
...
Add basic support "agents", ie: unmanaged extensions. Connected
agents are granted a limited ability to emit websocket notifications
and process rpc requests from Moonraker.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-10 14:17:25 -04:00
Eric Callahan
eb6aeddf78
update_manager: detect divergent remotes
...
If a repo's remote has diverged then a reset is necessary as the
attempt to pull will fail.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-07 08:25:26 -04:00
Eric Callahan
366e68c8f4
klippy_connection: send an event when gcode commands are received
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 17:18:54 -04:00
Eric Callahan
fe3b7456f6
klippy_apis: add pause, resume and cancel print method
...
These methods may be called internally, which invoke the associated
events.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 17:18:54 -04:00
Eric Callahan
e05aeac884
proc_stats: report system memory usage
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 17:18:50 -04:00
Eric Callahan
071a430159
klippy_apis: send events on pause, resume, and cancel requests
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 17:18:04 -04:00
Eric Callahan
18169f279e
file_manager: add get_directory method
...
This replaces the previous "get_sd_directory()" method, allowing
consumers to get any registered root path.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 17:18:03 -04:00
Eric Callahan
393cfa2a0e
machine: implement get_public_network method
...
This allows components to determine the current local
ip address that routes to the internet.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 17:18:02 -04:00
Eric Callahan
72a85e08d4
update_manager: refactor extension instantation
...
Don't allow extension errors to propagate, warn and continue
loading the module instead.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 11:46:24 -04:00
Eric Callahan
238b08ea1f
update_manager: bind Klipper beta updates to Moonraker
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 11:46:23 -04:00
Eric Callahan
6afc70a9f5
update_manager: add support for beta git updates
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 11:46:23 -04:00
Eric Callahan
03934d8d81
update_manager: deprecate web_beta type
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 11:46:23 -04:00
Eric Callahan
58ea3cfdc7
update_manager: deprecate zip beta type
...
Use the "channel" option to specify a beta.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 11:46:22 -04:00
Eric Callahan
f965ce8fd8
git_deploy: refactor tag retrieval
...
Use git for-each-ref to retreive tags and their associated commit
hashes. This allows us to limit the amount of tags to 10 and
simplifies the code as the returned objects are already dereferenced.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 11:46:22 -04:00
Eric Callahan
e9e86c3042
update_manager: refactor AppDeloy class
...
Don't require the `app_params` argument, instead dynamically
generate the configuration from a dict. This simiplifies AppDeploy
initialization as the internally generated configurations can be
read in the same way as those supplied in moonraker.conf.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 11:46:21 -04:00
Eric Callahan
93b62236de
update_manager: reorder update instances
...
Instantiate the moonraker instance first, then Klipper.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 11:46:21 -04:00
Eric Callahan
c8042a5700
update_manager: add support for extensions
...
While use of "unofficial" klippy extras an moonraker components
is not officially supported, there is no harm in facilitating
updates for these extensions in the update manager. This adds
configuration which will restart either moonraker or klipper
after an extension is updated.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 11:46:20 -04:00
Eric Callahan
16737d086d
update_manager: add full update tracking
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-04 11:46:20 -04:00
Eric Callahan
156e9652e1
announcements: add internal access methods
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-04-03 08:37:42 -04:00
Eric Callahan
9b5b3cc506
proc_stats: report system uptime in API request
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-03-31 16:44:39 -04:00
Eric Callahan
d11357e5f2
authorization: add status methods
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-03-30 14:35:39 -04:00
Eric Callahan
b85f3081ab
power: add retries to custom http requests
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-03-29 15:39:04 -04:00
Eric Callahan
8c7247acbb
announcements: add retries to http request
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-03-29 15:37:24 -04:00
Eric Callahan
242fabe7ad
announcements: don't capitalize the feed
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-03-25 15:48:15 -04:00
Eric Callahan
829b3b5c98
announcements: refactor RssFeed class
...
Don't require a config object to instantiate and don't attempt
to wrap database namespace. These changes allow instantation
after the server has started.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-03-25 15:08:54 -04:00
Eric Callahan
5757347994
http_client: use the simple client
...
While the curl based client is better in most respects, it requires
that libcurl be against with an asynchronous DNS resolver, such
as c-ares, in order to prevent blocking. As of now it Debian does
not ship with a version of curl with ares enabled. Fall back to the
simple client until this can be resolved.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-03-25 12:45:46 -04:00