2293 Commits
Author SHA1 Message Date
Eric Callahan 1ed102edfb docs: add new metadata fields
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-03-23 20:03:01 -04:00
Eric Callahan 5b81a641d6 assets: clarify the welcome message
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-03-23 19:57:38 -04:00
Franklyn Tackitt 4ba6fd228f metadata: Add printer model and profile version
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>
2026-03-23 19:31:17 -04:00
Eric Callahan e8d4a66fc9 notifier: log version of Apprise library
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>
2026-03-21 10:38:27 -04:00
Eric Callahan 9fc3a70570 build: bump apprise to version 1.9.8
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-03-21 06:19:33 -04:00
Eric Callahan 5f8a801a45 docs: clarify notifier configuration instructions
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-03-21 06:14:52 -04:00
Eric Callahan 9e6eeead5b docs: update requirements
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-03-17 06:31:59 -04:00
Eric Callahan 7e92d8a2a9 build: bump tornado to version 6.5.5
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-03-17 06:14:54 -04:00
Eric Callahan 811347c663 build: use uv for project management
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>
2026-03-16 19:48:52 -04:00
Eric Callahan fb257f8ab8 authorization: only authenticate passwords for local users
Refactor the _login_jwt_user to make it more clear and streamlined.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-03-06 15:24:41 -05:00
Eric Callahan 3fbe6ee218 mqtt: fix tls for version 2.0+ clients
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-02-25 15:28:40 -05:00
Eric Callahan 293a4cfc21 docs: update changelog
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-02-08 14:30:09 -05:00
Eric Callahan 179011f29f metadata: streamline PrusaSlicer identity detection
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-02-03 12:34:18 -05:00
Eric Callahan 3252bc232b metadata: refactor supported field detection
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>
2026-02-03 12:34:18 -05:00
Eric Callahan 1e84ecaadd metadata: auto register slicer parsing implementations
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>
2026-02-03 12:34:18 -05:00
Eric Callahan 4637d70ac1 metadata: add support for unknown PrusaSlicer forks
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>
2026-01-31 20:18:18 +00:00
Eric Callahan 343bba4c60 machine: support reboot and shutdown on more distros
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>
2026-01-28 15:57:36 +00:00
Eric Callahan 3e29720cb2 docs: fix headers for example secrets file
Make the title header clear for the examples.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-01-22 20:32:30 +00:00
Eric Callahan 290e537a84 docs: add a security policy
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-01-22 08:16:57 -05:00
Eric Callahan 16e530eb66 docs: prepare for version 0.10.0 release
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-01-21 19:08:15 +00:00
Eric Callahan a577b061ac docs: bring up changelog and configuration.md
Document all recent changes, particularly to the LDAP module.

Signed-of-by: Eric Callahan <arksine.code@gmail.com>
2026-01-21 19:08:15 +00:00
Eric Callahan 6e6d51c213 ldap: support case insensitive group comparisons
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>
2026-01-21 19:08:15 +00:00
Eric Callahan 4baff7a54b ldap: support alternate membership attributes
Allow "isMemberOf" in addition to "memberOf".

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-01-21 19:08:15 +00:00
Eric Callahan 7bcba99e37 ldap: use consistent error responses
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>
2026-01-15 21:36:26 +00:00
Eric Callahan 74c5d8e44c ldap: resolve filter injection vulnerability
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>
2026-01-15 21:36:26 +00:00
Eric Callahan bac55c65f8 workflows: delete stale github workflow
The "zip" style distribution of Moonraker was never deployed.

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2026-01-15 13:00:38 +00:00
Eric Callahan 63672ea38b mqtt: update static types to support client version 2.0 or greater
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-01-15 12:55:40 +00:00
Eric Callahan 4b751e79e1 build: update universal zeroconf wheels
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>
2026-01-15 00:26:27 +00:00
Eric Callahan 3ea83163b0 build: update python dependencies to their latest versions
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-01-14 16:21:49 +00:00
Eric Callahan 0e8dd923f8 install: add support for dev container installs
Add support for installing Moonraker inside a vscode "python"
dev container.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-01-14 12:49:16 +00:00
Eric Callahan 2b1c70a9e1 build: update python dev requirements
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2026-01-14 12:49:16 +00:00
Eric Callahan d7df2876dd sysdeps_parser: add support for env exclusions
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>
2026-01-14 12:49:16 +00:00
Eric Callahan 3e6378fbc6 repo: update gitignore file
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2026-01-14 12:49:16 +00:00
Eric Callahan bdeddcabad system_deploy: check update severity bits in info_code
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>
2026-01-14 12:49:16 +00:00
igiannakas b3f9566b8b spoolman: fix filament accounting on MMU setups (happy hare, AFC)
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>
2026-01-06 10:33:38 -05:00
Pedro Lamas 5b92e52e29 metadata: filament_name and filament_type as array
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2025-12-13 12:46:00 -05:00
Michał Ciesielski 058517b5b4 json_wrapper: don't include spaces in encoded json
msgspec doesn't encodes into compact JSON, without spaces. Make default json.dumps do the same.

Signed-off-by: Michal Ciesielski <michal@ciesie.com>
2025-12-04 19:45:20 -05:00
Eric Callahan 960e933837 thirdparty: update packagekit enums
Add new packagekit enumerations.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-11-23 11:19:55 +00:00
Eric Callahan 37d46d284f scripts: update pk-enum-converter.py
Minor improvement to docstring item description formatting.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-11-23 11:17:45 +00:00
Eric Callahan be41e8ded6 system_deploy: fix Info enum instantiation
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>
2025-11-22 15:39:11 +00:00
Javad Asgari Shafique 3129d89f0f simplyprint: increase connect timeout from 5.0 to 15.0 seconds
Signed-off-by: Javad Asgari Shafique <me@javad.sh>
2025-11-16 06:02:14 -05:00
Jonas Damtoft abd2026b90 python_deploy: use --pre flag for pip beta channel
Signed-off-by: Jonas Damtoft <jonasdamtoft@gmail.com>
2025-11-10 07:53:36 -05:00
Eric Callahan 8426f4107c simplyprint: avoid divide by zero in layer detection
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-10-20 10:47:57 -04:00
Eric Callahan 3eb575d0ec td1: add annotations future import
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-10-12 07:46:50 -04:00
Eric Callahan f2bb93ffc4 common: use the 'data' field for agent error info
The JSON-PRC specs "data" as the correct field name for
extra error data.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-10-04 17:02:53 -04:00
martijnvanduijneveldt 5836eab233 proc_stats : Add support for cpu temperature readout on intel and amd
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>
2025-10-02 14:20:01 -04:00
matszwe02 0775e3f4fc metadata: allow generating thumbnails for unknown slicer
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>
2025-10-02 07:40:45 -04:00
Eric Callahan 1bc2189b72 common: improve agent error handling
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>
2025-10-02 07:30:54 -04:00
Eric Callahan 9098675ede td1: various cleanup
- 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>
2025-10-02 07:30:54 -04:00
jimmyjon711 b11a791566 docs: Adding documentation for TD-1 module
Signed-off-by: Jim Madill <jcmadill1@gmail.com>
2025-09-25 05:53:38 -04:00