Commit Graph
2236 Commits
Author SHA1 Message Date
Eric Callahan fa90202eb9 metadata: support more PrusaSlicer thumbnail formats
Singed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-09-12 14:15:14 -04:00
Eric Callahan df3965e896 python_deploy: bump pip refresh timeout to 10 minutes
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-09-12 14:15:14 -04:00
Eric Callahan b9b1c899b3 app_deploy: refactor pip update check
Reduce time spent running "pip --version" by storing the version
info and last time checked.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-09-11 16:52:14 -04:00
Eric Callahan 29083b7c49 python_deploy: update pip prior to refresh
Packages updated via PyPI require a recent version of Pip
to perform the "dry run" installation used to determine
upstream version info.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-09-08 10:33:21 -04:00
Javad Shafique 52e315868b simplyprint: extend job_info with objects and job_id
- Restructered `exclude_object` handling to be sent over `job_info` as
  `skipped_objects`
- Append and track current job_id in `job_info` and `file_progress`
  messages
- Fixed old test-url (internal usage)
- Send `current_object` as `job_info.object`

Signed-off-by: Javad Asgari Shafique <me@javad.sh>
2025-08-31 12:24:24 -04:00
Eric Callahan bbda9e2f55 simplyprint: forward exclude_object status
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-08-31 12:24:24 -04:00
Eric Callahan f20feff6c6 job_state: refactor print start detection
Any transition to from an idle state to any state other
than "standby" should emit a started event.  This should
nearly always be a "printing" state, however it is possible
that Klipper's API server will not have a chance to push
a  "printing" status update if the print is immediately
paused, cancelled, or aborted due to an error.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-08-01 18:17:31 -04:00
Božo Dragojevič 77c9149348 git_deploy: Support relative paths in gitfile
When a git project managed by moonraker is a submodule of a superproject, gitfile
contains a relative path.

Resolve contents of the gitfile relative to the directory containing the gitfile.

Signed-off-by: Božo Dragojevič <bozzo.dragojevic@gmail.com>
2025-07-28 16:27:58 -04:00
Eric Callahan cea6fbcf17 machine: fix typo in usb_id storage
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-07-26 14:05:49 -04:00
Thijs Triemstra 00720f5bf0 moonraker: fix typos in source
Signed-off-by: Thijs Triemstra <info@collab.nl>
2025-07-26 14:03:29 -04:00
Thijs Triemstra 46913913be git deploy: fix typos
Signed-off-by: Thijs Triemstra <info@collab.nl>
2025-07-26 13:59:29 -04:00
Eric Callahan 72b89d905e build: add libcamera2 optional dependency
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>

fix
2025-07-24 06:15:34 -04:00
Eric Callahan 206fd4828d sysdeps_parser: add support for vendor specifier
Currently the vendor is only detected for systems running
Raspberry Pi OS and reported as 'raspberry-pi'.  This may be
used to filter Pi specific dependencies.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-07-23 19:28:01 -04:00
Eric Callahan b1b515a1fb power: fix linting error
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-07-16 06:39:08 -04:00
Eric Callahan 83034dd2fc docs: document new power options
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-07-16 06:31:27 -04:00
Eric Callahan 3df6a1eafd power: silence polling errors
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-07-15 10:35:12 -04:00
Eric Callahan 8d4244ba87 power: improve device initialization
Remove duplicate code and improve error handling
during device init.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-07-13 13:52:52 -04:00
Eric Callahan 3072882495 power: add device polling
Implement optional polling for devices that are not updated
asynchronously.  GPIO, RF, Klipper, and MQTT devices are
excluded.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-07-13 13:52:52 -04:00
Eric Callahan a6862fba03 power: klipper device improvements
Avoid binding to the detected unit name of the Klipper
service, if available.  Exclude all async notifications
sent when  the device is processing a request.

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2025-07-12 06:18:14 -04:00
Eric Callahan 8d67e65c7f power: process initial bound services for uhubctl and klipper devices
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-07-12 06:17:14 -04:00
Eric Callahan a78e704b0d power: add restrict action processing option
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-07-12 06:17:10 -04:00
Eric Callahan 06cdffa169 application: disable websocket pinging for older versions of tornado
Version of Tornado prior to 6.5.0 have a bug that may
prematurely close websocket connections when pinging
is enabled.  Disable pinging for Moonraker's websocket
server and spoolman's client.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-07-08 06:24:45 -04:00
Julien Batonnet 3c1f31874a simplyprint: Improve progess calculation mimicing what's being done in Mainsail and Fluidd
Signed-off-by: Julien Batonnet <julien.batonnet@gmail.com>
2025-07-06 12:40:35 -04:00
Karcsesz 6ff9a7ca7a docs: Fix typos and amend a missing field description
Signed-off-by: Veres Károly <git@karcsesz.hu>
2025-06-27 14:58:37 -04:00
Eric Callahan 12bfb15d64 docs: update documentation with latest changes
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-06-27 14:16:31 -04:00
Eric Callahan 826f0e3ea3 spoolman: fix ping timeout
Tornado client websockets treat the ping timeout differently
from server websockets.  The ping timeout should be less than
the ping interval.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-06-27 14:00:37 -04:00
Eric Callahan bfdf2a91ef template: add debug logging environment global
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-06-27 10:41:04 -04:00
Eric Callahan 0cc941f7e0 build: bump tornado and dbus-fast
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-06-27 10:41:04 -04:00
Eric Callahan bd266cdce2 eventloop: store reference to all background tasks
Newer versions of Python can potentially destroy tasks
before they are complete due to garbage collection.   To
prevent this a reference to all created tasks are kept in
a set and removed when the task is done.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-06-27 10:41:04 -04:00
Eric Callahan 0c848948b4 power: extend context for the mqtt state response
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-06-27 10:41:04 -04:00
Eric Callahan dbe0dc4d08 update_manager: add report_anomalies option
Anomalies do not prevent updates, they are intended to alert
users of potential issues detected within an extension for
update.  Anomalies are always logged, however it is not
necessary for them to be reported to frontends.  This option
gives users the ability to silence anomalies on a per extension
basis.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-06-25 07:49:23 -04:00
Eric Callahan ccbfd64989 analysis: remove trailing slash from dump url
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-06-12 05:20:05 -04:00
Eric Callahan 6d65a914a2 analysis: include route prefix in dump url
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-06-11 05:26:45 -04:00
Eric Callahan 0310d0be9f build: bump pdm-backend version
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-05-22 11:44:36 -04:00
Eric Callahan 1c12414972 analysis: fix dump url detection
Don't use the detected public IP when the user
has configured Moonraker to listen exclusively
on the localhost.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-04-22 05:46:53 -04:00
Thijs Triemstra 5ee0adc553 docs: fix typos
Signed-off-by: Thijs Triemstra <info@collab.nl>
2025-04-19 05:22:23 -04:00
Icenowy Zheng 7cdcca3cb4 build: bump pillow for Python >=3.9
Pillow 10 does not support Python 3.13 and Pillow 11 does not support
Python 3.8.

Allowing Pillow from 9.5.0 to 11.1.0 in requirements to adapt Pillow 11
when it's available.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
2025-04-03 10:32:01 -04:00
Pedro Lamas 63bcf0b99d power: removes extra space from command
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2025-04-03 05:21:46 -04:00
Eric Callahan b90c96524c server: skip pip recovery when the missing module is a component
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-03-26 05:53:25 -04:00
Eric Callahan 1226a08176 loghelper: add support for structured logging
Support logging to json structures, useful for log parsers
and analytics.  When enabled logging to stdout is still human
readable, so both forms of logging are available simultaneously.

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2025-03-26 05:29:33 -04:00
Pedro Lamas ebaa6645b2 metadata: improves Cura multi-extruder support
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2025-03-14 05:31:53 -04:00
Pedro Lamas 4eb23ef281 metadata: balanced quoted string split
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2025-03-06 11:43:52 -05:00
Wondro 18f3da59b0 file_manager: Fix total filament change count parsing for PS/SS
Signed-off-by: Tyler Wondrasek <wondro18@hotmail.com>
2025-03-03 05:30:56 -05:00
Eric Callahan 91b6bfbd09 workflows: update bug template
Add OctoApp to the client list.  Make it clear that moonaker.log is
required.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-03-01 08:10:00 -05:00
Wondro 4889a2dd38 file_manager: Added per tool weights and total filament change count metadata
Signed-off-by: Tyler Wondrasek <wondro18@hotmail.com>
2025-02-26 18:08:53 -05:00
moggieuk 9b4b3def44 file_manager: Added additional metadata to aid tool selection on single extruder multi-material prints
Added additional essential metdata for single extruder multi-material printing.  This is critical to new Mainsail functionality to map tools to MMU spools when using Happy Hare (Klipper MMU driver)

Signed-off-by: Paul Morgan (moggieuk@hotmail.com)
2025-02-26 12:32:10 -05:00
Eric Callahan f2d53fe386 install: update package resolution method
Embed the sysdeps_parser module in the install script
for package dependency resolution.  This method is
more robust than the bash implementation and adds
support for the new requirement specifiers.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-02-21 16:54:12 -05:00
Eric Callahan 31cb1fc94c update_manager: use sysdeps_parser
Use the sysdeps_parser utility to parse the correct dependencies
out of the data returned by the configured system dependencies
json file.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2025-02-21 16:54:12 -05:00
Eric Callahan 4b4ca76558 utils: add sysdeps_parser utility module
This functionality is used by the update manager to parse
the result from system dependency files.  By moving it
out of the update manager it becomes easier to test,
extend, and maintain.  Additionally it can be embedded
in the install script.

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2025-02-21 05:22:58 -05:00
Pedro Lamas 62051108ea docs: JSON typo fix
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
2025-02-18 10:23:11 -05:00