Eric Callahan
b3d2307d36
docs: document object processing
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:45:06 -05:00
Eric Callahan
9dd0797f49
file_manager: ignore duplicate "create_file" notifications for gcode files
...
The the cancel object post processor results in an additional
"create_file" notification when the old file is replaced.
Track previous "create_file" notifications for valid gcode
files so the dups can be suppressed.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:45:06 -05:00
Eric Callahan
ea6c78773e
scripts: add preprocess-cancellation dependency
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:45:06 -05:00
Eric Callahan
b7c64443db
file_manager: refactor metadata processing
...
When destructively iterating over pending metdata requests
don't pop the pending item until metadata processing is
complete. If a call to `parse_metadata()` has a request
pending, return the asyncio Event associated with that
request.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:45:06 -05:00
Eric Callahan
88137d5898
file_manager: add option to enable object postprocessing
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com
2021-12-05 06:45:06 -05:00
Eric Callahan
6bd46a4433
metadata: add support for object postprocessing
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:45:06 -05:00
Eric Callahan
f00263b782
docs: document the refresh_interval option
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:41:18 -05:00
Eric Callahan
13bc4c5b9b
update_manager: handle system package init
...
Force refresh requests after server initializaton. Update
package state after installation.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:34 -05:00
Eric Callahan
e8c1798a13
update_manager: Prune stale data in the database
...
SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:34 -05:00
Eric Callahan
3203950ca9
update_manager: prevent refresh requests from spamming
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:34 -05:00
Eric Callahan
4c68086798
zip_deploy: add support for persistent state
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:34 -05:00
Eric Callahan
bb87917c97
git_deploy: add support for persistent state
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:34 -05:00
Eric Callahan
74a03fca59
app_deploy: add support for persistent state
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:34 -05:00
Eric Callahan
eb8f1e2526
update_manager: add support for persistent state
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:26:31 -05:00
Eric Callahan
3a547fb530
base_deploy: add support for persistent state
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:25:24 -05:00
Eric Callahan
d23f72d232
database: increase max namespaces to 100
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:25:24 -05:00
Eric Callahan
c4fa76f217
update_manager: remove refresh time tracking
...
This is preparation for moving refresh time tracking to the deployment
provider class.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:25:20 -05:00
Eric Callahan
d8a31fc249
update_manager: remove init success check
...
Now that the update manager doesn't rely on the rate
limit it should always initialize successfully. An individual
updater may still fail to initialize, however this does
not prevent the update manager from loading.
Singed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-28 11:15:23 -05:00
Eric Callahan
7f0712183d
update_manager: remove GitHub rate limit initialization
...
The rate limit fields can be extracted from the response
to an API request, even if that request fails with 403. This speeds up update manager initialization and reduces
failures if github is unreachable.
SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-28 11:15:23 -05:00
Eric Callahan
f7bdfb4d6b
confighelper: add get_hash method
...
This returns the checksum of a config section and can be used to check
if the section has changed.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-28 11:15:23 -05:00
Eric Callahan
eda5623b2e
database: fix invalid key handling
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-28 11:10:42 -05:00
Eric Callahan
3df0f3ffe4
job_queue: add websocket notification
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-27 10:23:04 -05:00
Eric Callahan
269897bef7
job_queue: rename "resume" api to "start"
...
Given the changes to the job queue, "start" is a more
appropriate API call than "resume".
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-27 06:04:47 -05:00
Eric Callahan
4837ea56cb
job_queue: register remote method to control the queue
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 20:35:10 -05:00
Eric Callahan
e9b3d8e7ae
docs: update job_queue documentation
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 20:01:16 -05:00
Eric Callahan
28e88b1363
job_queue: dont attempt to start a print when empty
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 19:53:57 -05:00
Eric Callahan
784b8b9b18
file_manager: attempt to start gcode uploads prior to queueing
...
Only attempt to queue the upload if the job failed to start.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 19:46:59 -05:00
Eric Callahan
f09c313c5b
job_queue: fix resume request
...
Make sure that the queue is set to ready after resuming,
even if the next job is unable to be loaded.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 18:11:11 -05:00
Eric Callahan
d25c3c1d49
job_queue: queue state fix
...
When not in automatic mode make sure the queue
state is paused after adding a job to the queue.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 17:19:44 -05:00
Eric Callahan
0f428acd07
docs: update job_queue documentation
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 17:00:42 -05:00
Eric Callahan
e8cdd8a928
job_queue: add "automatic_transition" option
...
When set to true, the queue will automatically transition
to the next job in the queue upon completion of the
current job. When false the queue will pause between
jobs, requiring that the user manually resume.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 17:00:42 -05:00
Eric Callahan
0b9fa7d87e
zeroconf: more refactoring
...
Resolve issues with ipv6 addresses. Only register the
net_state_changed event handler if Moonraker is bound
to all interfaces. Build a new instance of ServiceInfo
for each update rather than attempt to modify the
existing object.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 15:51:49 -05:00
Eric Callahan
c89a9152b5
moonraker: log exceptions when a component_init fails
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 14:39:01 -05:00
Eric Callahan
b70254feed
zeroconf: minor formatting fix
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 14:30:47 -05:00
Clifford Roche
513a122290
zeroconf: Don't close on update
...
Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
2021-11-26 14:28:06 -05:00
Clifford Roche
6258082d70
zeroconf: Implement new approach for ip detection
...
Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
2021-11-26 14:28:06 -05:00
Eric Callahan
76e431330c
machine: service unit detection fix
...
Add `--plain` and `--no-legend` to the command to list service units.
This fixes a bug where a service could be prefixed with a unique
character, resulting undetected services.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 09:02:05 -05:00
Eric Callahan
685bd72274
app: add request debug logging
...
This mimics the logging available over JSON-RPC requests.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 06:11:13 -05:00
TravisTX
d020dc81db
docs: document the protocol config option
...
Signed-off-by: Travis Collins <travistx@gmail.com>
2021-11-25 19:22:52 -05:00
Eric Callahan
f0831cbe3c
moonraker: prevent duplicate failed components
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-25 17:16:09 -05:00
Eric Callahan
2a0be55a8d
power: remove has_gpio check
...
This prevents loading the gpio module unless a gpio
device is configured. Resolves #283 .
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-25 17:16:09 -05:00
Eric Callahan
ccb86ea039
proc_stats: check for network updates every 10 seconds
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-25 08:18:24 -05:00
Eric Callahan
b33183f60f
machine: add support for parsing network info
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-25 07:58:25 -05:00
Eric Callahan
7a99f83396
server: refactor get_host_info method
...
Return a dict with the host name, server address, server port, and ssl port.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-25 05:43:49 -05:00
Pedro Lamas
16c8063900
docs: fixes minor typos
...
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2021-11-24 11:33:23 -05:00
Eric Callahan
50fd8c9cc4
confighelper: track default values
...
This restores the behavior before commit 5b4de64
.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-23 13:55:24 -05:00
Eric Callahan
0a1367744f
confighelper: fix json parsing error for gpios
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-23 08:21:56 -05:00
Clifford Roche
4e8e4f7d14
zeroconf: add module for zeroconf discovery
...
Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
2021-11-22 15:03:33 -05:00
Clifford Roche
44abc64533
machine: add serial number attribute for cpu
...
Adds the property "serial_number" to the process info structure.
Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
2021-11-22 14:00:34 -05:00
Eric Callahan
97e27661d7
gpio: remove get_gpio_out_from_config method
...
The confighelper object now can setup gpios directly.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-21 06:26:09 -05:00