Adds `printer_vendor`, `printer_model`, `printer_variant`, and
`profile_version` to parsed metadata. Currently only parsed for
PrusaSlicer derivatives.
Signed-off-by: Franklyn Tackitt <git@frank.af>
Add a note in the notifier documentation indicating the
relationship between the installed version of Apprise and
notification services available.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Switch to "uv" for package and project management. Currently
the pdm backend is still used to perform the build due to its
built-in scm versioning and flexible build hooks.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Rather than keep a separate list of supported fields, use the BaseSlicer
class to track them. All fields must implement a "parse_{field name}"
method in the BaseSlicer, overridden as necessary in child classes.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Use a metaclass to track and register subclasses of
BaseSlicer. This removes the need to keep a separate
"SUPPORTED_SLICERS" constant. Registered slicers are
sorted so that derivative classes are inserted before
parents.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Match any slicer conforming to the original identifier provided
used by PrusaSlicer. This allows Moonraker to process metadata
for the numerous PS forks that are created.
Create a derivative class for BambuStudio, as it is sufficiently
different that it requires its own implementation to correctly
process all metadata.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Previously a change was made away from the standard "reboot" and
"poweroff" commands as not every systemd distro had the correct
symbolic links available. However, there are other distros that do
not use systemd. To support the maximum number of distros detect
if systemctl is available and prefix it to the command if so.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
By default the comparison between the `group_dn` option and
group DNs reported by the server are case sensitive. Add a
"check_dn_case" option to toggle this behavior.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Previously 401 errors returned a response with a descriptive message,
useful in determining the reason for failure. These descriptions could
be used in combination with filter injection to determine the success
or failure of an ldap filter search.
To avoid this return the generic "Unauthorized" message for all ldap
401 errors. The descriptive failure will be present in moonraker.log.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Escape filter characters from the username before substituting in the filter. This resolves a vulnerability where Moonraker could be used to dump all users and their attributes from a configured ldap server.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Version 0.136.2 is the last release supporting Python 3.8, 0.148.0 is the latest release at the time of this commit. These provide fallback options for
platforms for which wheels are not available.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
A list of system package exclusions may be set via the
MOONRAKER_EXCLUDED_PKGS environment variable.
In addition, a MOONRAKER_VENDOR enviroment
variable has been added to allow for manually setting
the vendor name.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
The update severity is stored in the upper 16 bits of the info code in
newer versions of package kit. Some backends may omit the lower
16-bits and only store the severity, in those cases use the update
severity enum value in place of the info value.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Rebase E high-water mark on active spool change to prevent spoolman undercount after tool changes
Signed-off-by: Ioannis Giannakas <ioannis@my-spot.co.uk>
The info_code included in the package signal may
contain a "package_severity" value in the upper
16-bits. Mask off the lower 16 bits to avoid an
instantiation error.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
thermal_zone0 doesn't exist on amd, and can be wrongly mapped on intel
Detect correct thermal zone based on hwmon name, fallback to thermal_zone0
Signed-off-by: Martijn van Duijneveldt <martijnvanduijneveldt@gmail.com>
This will allow for less common or newly created slicers to attach thumbnails into gcode, without a need to report as being a different slicer
Signed-off-by: Mateusz Szwedka <matszwe02@gmail.com>
Introduce an AgentError exception which contains error
details provided by the agent in response to a client
request. These details are included in an "extra" field
of the error object in the response.
Use code error code 424 (Failed Dependency) when an agent
responds to a request with an error.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
- Limit imports to those necessary during type checking
- Fix ambiguous annotations
- Remove calls to deprecated "datetime.utcnow"
- Rename TD1Protocol to TD1Connection
- Remove extraneous whitespace
- Remove duplicative "TD1._known_serials" class member.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>