The addition of "gcode file processors" makes it possible
for processor registration to occur in "component_init".
The file observer init must be delayed until after all processors
are registered to correctly process metadata for gcode files
added while Moonraker was not running.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Early feedback is that replacing the "estimated_time" field of the metadata
with the value returned by Klipper Estimator is not sufficient. The
post-process performed by Klipper Estimator also updates M73 gcode
commands, ETAs calculated based on progress are inaccurate without
these mods.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
It is possible to create, move, then close a file. Handle this case
by rescheduling the "create_file" event under the new name.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Perform a post-process with Klipper Estimator rather than
analyze and replace the "estimated_time" field in the metadata.
This updates the M73 commands in the gcode file, allowing for
more accurate ETAs.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Allow components to register gcode processors which will modify
the gcode file prior to metadata processing.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Don't propagate exceptions when update_pip fails. Some
systems may not be able to update pip, and the current
version of pip should be sufficient to install packages.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Standard git repos contain a ".git" folder, however worktrees
contain a ".git" file. The file provides the path to the worktree's
git directory.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Attempt to update all dependencies of a python package to the
latest version compatible with its requirement specifier.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This change refactors zip_deploy.py, renaming it net_deploy.py.
Net hosted executables that currently exist on the system
with a valid `release_info.json` file can now be updated.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Also add a warning to the "webhooks" printer object description
stating that it should not be used to receive async "ready"
updates.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
If the connection requesting the subscription already had
an outstanding subscription, remove it before processing.
This prevents immediate status updates from being pushed
to the requesting connection.
Don't add connections to the dictionary of subscribed
connections if the request is an empty object, as this
is a request to unsubscribe from all objects.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Moonraker's external API documentation has been significantly
overhauled in an effort to improve clarity and readability.
All parameters and responses are documented with specifications.
Tables and other elements are used to make documentation more
visible and less verbose.
Spelling and other corrections have also been added.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This extension is used to collapse the example responses presented
in the API documentation, which can be quite long.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Fetch the API Key from Moonraker's SQL database when available.
Add a -g option which will generate a new API Key and insert it into the database.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>