Skip to main content

pushraker

Push notifications for Klipper printers, as a Moonraker component: print started, paused, resumed, complete, cancelled, progress, first layer, faults and shutdowns, power-loss recovery, chamber temperature, filament (Spoolman, backup spools, MMUs), with pictures (camera snapshot, model preview, spool drawings). Sent through Apprise: ntfy, Pushover, Gotify, Telegram, Discord, a webhook, email. Configured from its own web page, live, with no Moonraker or Klipper restart.

It grew out of the Push Notifications feature of the Snapmaker U1 Extended Firmware, where it is built in; the user documentation lives there for now: notifications.

Status: 0.2. The component has been in use on the Snapmaker U1 for a while; the page, the settings file and the installer are new. Other printers: the generic parts work (Klipper's standard objects: print_stats, exclude_object, heater_generic, tmc drivers, Moonraker's webcams and Spoolman); printer-specific parts are behind printers/, one module per printer; snapmaker_u1.py is the first. Notifications a printer can't produce (the U1's touchscreen calibrations, coded warnings, power-loss recovery, toolhead-map refills, MMU slots) start off on other printers and are left off the page; turn one on in pushraker.conf and it shows on the page and is sent like any other.

Install (any Moonraker printer)

pip install pushraker            # into the Python Moonraker runs with
python -m pushraker install      # ~/moonraker and ~/printer_data by default

install puts a one-file shim into Moonraker's components/ folder, adds [pushraker] to moonraker.conf, includes the Klipper macro file from printer.cfg, and creates printer_data/config/pushraker.conf. Restart Moonraker and Klipper. Then serve the settings page (src/pushraker/web/index.html, or python -c "import pushraker, os; print(os.path.dirname(pushraker.__file__) + '/web')") from the same nginx that serves Fluidd or Mainsail, e.g.

location /notifications/ {
    alias /path/to/site-packages/pushraker/web/;
    index index.html;
}

and open http://<printer>/notifications/. The page talks to Moonraker through the /server/ proxy of that nginx; without one it falls back to Moonraker's own port, which needs the page's origin in cors_domains under [authorization] in moonraker.conf. With Moonraker's authorization on, the page asks for an API key the first time.

Call _PRINT_END_NTFY at the start of your PRINT_END macro and _CANCEL_PRINT_NTFY at the start of CANCEL_PRINT for the print-end and cancel snapshots to be taken before the printer parks (the Snapmaker U1 extended firmware does that through its hook system).

python -m pushraker install --help lists the paths and options (include directories, the printer's default name, the error-code index link, moving settings over from an INI section). python -m pushraker uninstall takes it out again; --purge also removes the settings and secrets.

Where things live on the printer

  • printer_data/config/pushraker.conf: the settings, a plain INI file (also editable by hand; the component re-reads it when it changes).
  • printer_data/pushraker.secrets: tokens and passwords, mode 0600, outside the config folder so Moonraker never serves it.
  • Moonraker endpoints: GET/POST /server/pushraker/config, POST /server/pushraker/test, GET /server/pushraker/status (also under /server/push_notifications/, the 0.1 names).

Layout

  • src/pushraker/component.py — the Moonraker component
  • src/pushraker/settings.py — the settings: validation, storage, the Apprise URLs built from them
  • src/pushraker/printers/ — what differs between printers (the harness side of the package), one module per printer; snapmaker_u1.py is the first
  • src/pushraker/images.py — spool pictures (Pillow)
  • src/pushraker/email_html.py, src/pushraker/discord.py — email card, Discord senders
  • src/pushraker/web/index.html — the settings page
  • src/pushraker/klipper/pushraker.cfg — the Klipper macro file
  • src/pushraker/__main__.py — python -m pushraker install|uninstall|status
  • tests/ — python tests/test_pushraker.py (the component against a stand-in Moonraker; also runs test_settings.py)

License

GPL-3.0-or-later.

Metadata

Release files for pushraker 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pushraker 0.2.1
File Size Uploaded Provenance Actions
pushraker-0.2.1.tar.gz 149.0 kB With provenance Details for pushraker-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pushraker 0.2.1
File Interpreter ABI Platform Actions
pushraker-0.2.1-py3-none-any.whl Python 3 none any Details for pushraker-0.2.1-py3-none-any.whl

Total release size: 270.5 kB

Release files / pushraker-0.2.1.tar.gz

Download URL pushraker-0.2.1.tar.gz
Size 149.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a166bd3c0e0072b619c11ce9ebd336209f978cd9dbedc03f75538466d86bf214
BLAKE2b-256 checksum
How to use checksums
796b1b2108c3344d35ce3adaba819f8242aaf79eb5dd972c8030192ab18096f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / pushraker-0.2.1-py3-none-any.whl

Download URL pushraker-0.2.1-py3-none-any.whl
Size 121.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
429be8b5b2e2979c9f7959bbcfc25cab6a89e1219c03ac1594673f3542a18ad5
BLAKE2b-256 checksum
How to use checksums
4dda98aebdd7d18ca1ba74804a129b42d1a26a9737870673dfa7e1a7c765dd94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for pushraker 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pushraker-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page