pushraker 0.3.2__tar.gz → 0.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. {pushraker-0.3.2/src/pushraker.egg-info → pushraker-0.3.4}/PKG-INFO +6 -3
  2. {pushraker-0.3.2 → pushraker-0.3.4}/README.md +4 -2
  3. {pushraker-0.3.2 → pushraker-0.3.4}/pyproject.toml +3 -2
  4. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker/__init__.py +1 -1
  5. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker/component.py +1603 -250
  6. pushraker-0.3.4/src/pushraker/defaults.py +26 -0
  7. pushraker-0.3.4/src/pushraker/engine.py +492 -0
  8. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker/images.py +34 -6
  9. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker/printers/__init__.py +2 -1
  10. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker/printers/snapmaker_u1.py +13 -19
  11. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker/settings.py +478 -128
  12. pushraker-0.3.4/src/pushraker/templates/calibration.j2 +17 -0
  13. pushraker-0.3.4/src/pushraker/templates/calibration.title.j2 +1 -0
  14. pushraker-0.3.4/src/pushraker/templates/cancelled.j2 +5 -0
  15. pushraker-0.3.4/src/pushraker/templates/cancelled.title.j2 +1 -0
  16. pushraker-0.3.4/src/pushraker/templates/chamber_fault.j2 +20 -0
  17. pushraker-0.3.4/src/pushraker/templates/chamber_fault.title.j2 +1 -0
  18. pushraker-0.3.4/src/pushraker/templates/chamber_reached.j2 +3 -0
  19. pushraker-0.3.4/src/pushraker/templates/chamber_reached.title.j2 +1 -0
  20. pushraker-0.3.4/src/pushraker/templates/chamber_waiting.j2 +3 -0
  21. pushraker-0.3.4/src/pushraker/templates/chamber_waiting.title.j2 +1 -0
  22. pushraker-0.3.4/src/pushraker/templates/complete.j2 +14 -0
  23. pushraker-0.3.4/src/pushraker/templates/complete.title.j2 +6 -0
  24. pushraker-0.3.4/src/pushraker/templates/driver_hot.j2 +5 -0
  25. pushraker-0.3.4/src/pushraker/templates/driver_hot.title.j2 +1 -0
  26. pushraker-0.3.4/src/pushraker/templates/error.j2 +6 -0
  27. pushraker-0.3.4/src/pushraker/templates/error.title.j2 +1 -0
  28. pushraker-0.3.4/src/pushraker/templates/filament_change.j2 +4 -0
  29. pushraker-0.3.4/src/pushraker/templates/filament_change.title.j2 +1 -0
  30. pushraker-0.3.4/src/pushraker/templates/filament_low.j2 +31 -0
  31. pushraker-0.3.4/src/pushraker/templates/filament_low.title.j2 +1 -0
  32. pushraker-0.3.4/src/pushraker/templates/filament_short.j2 +43 -0
  33. pushraker-0.3.4/src/pushraker/templates/filament_short.title.j2 +1 -0
  34. pushraker-0.3.4/src/pushraker/templates/first_layer.j2 +9 -0
  35. pushraker-0.3.4/src/pushraker/templates/first_layer.title.j2 +1 -0
  36. pushraker-0.3.4/src/pushraker/templates/layer_started.j2 +5 -0
  37. pushraker-0.3.4/src/pushraker/templates/layer_started.title.j2 +1 -0
  38. pushraker-0.3.4/src/pushraker/templates/macro.j2 +2 -0
  39. pushraker-0.3.4/src/pushraker/templates/macro.title.j2 +1 -0
  40. pushraker-0.3.4/src/pushraker/templates/paused.j2 +7 -0
  41. pushraker-0.3.4/src/pushraker/templates/paused.title.j2 +6 -0
  42. pushraker-0.3.4/src/pushraker/templates/power_loss.j2 +4 -0
  43. pushraker-0.3.4/src/pushraker/templates/power_loss.title.j2 +1 -0
  44. pushraker-0.3.4/src/pushraker/templates/preprint_done.j2 +6 -0
  45. pushraker-0.3.4/src/pushraker/templates/preprint_done.title.j2 +1 -0
  46. pushraker-0.3.4/src/pushraker/templates/progress.j2 +5 -0
  47. pushraker-0.3.4/src/pushraker/templates/progress.title.j2 +1 -0
  48. pushraker-0.3.4/src/pushraker/templates/resumed.j2 +5 -0
  49. pushraker-0.3.4/src/pushraker/templates/resumed.title.j2 +1 -0
  50. pushraker-0.3.4/src/pushraker/templates/shutdown.j2 +6 -0
  51. pushraker-0.3.4/src/pushraker/templates/shutdown.title.j2 +1 -0
  52. pushraker-0.3.4/src/pushraker/templates/slot_empty.j2 +13 -0
  53. pushraker-0.3.4/src/pushraker/templates/slot_empty.title.j2 +1 -0
  54. pushraker-0.3.4/src/pushraker/templates/spool_switch.j2 +20 -0
  55. pushraker-0.3.4/src/pushraker/templates/spool_switch.title.j2 +1 -0
  56. pushraker-0.3.4/src/pushraker/templates/started.j2 +21 -0
  57. pushraker-0.3.4/src/pushraker/templates/started.title.j2 +1 -0
  58. pushraker-0.3.4/src/pushraker/templates/status_report.j2 +6 -0
  59. pushraker-0.3.4/src/pushraker/templates/status_report.title.j2 +1 -0
  60. pushraker-0.3.4/src/pushraker/templates/warning.j2 +6 -0
  61. pushraker-0.3.4/src/pushraker/templates/warning.title.j2 +1 -0
  62. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker/templating.py +199 -54
  63. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker/web/index.html +843 -263
  64. pushraker-0.3.4/src/pushraker/web/sample-render.jpg +0 -0
  65. {pushraker-0.3.2 → pushraker-0.3.4/src/pushraker.egg-info}/PKG-INFO +6 -3
  66. pushraker-0.3.4/src/pushraker.egg-info/SOURCES.txt +75 -0
  67. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker.egg-info/requires.txt +1 -0
  68. {pushraker-0.3.2 → pushraker-0.3.4}/tests/test_pushraker.py +762 -73
  69. {pushraker-0.3.2 → pushraker-0.3.4}/tests/test_settings.py +66 -29
  70. pushraker-0.3.2/src/pushraker.egg-info/SOURCES.txt +0 -22
  71. {pushraker-0.3.2 → pushraker-0.3.4}/LICENSE +0 -0
  72. {pushraker-0.3.2 → pushraker-0.3.4}/setup.cfg +0 -0
  73. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker/__main__.py +0 -0
  74. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker/discord.py +0 -0
  75. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker/email_html.py +0 -0
  76. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker/klipper/pushraker.cfg +0 -0
  77. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker.egg-info/dependency_links.txt +0 -0
  78. {pushraker-0.3.2 → pushraker-0.3.4}/src/pushraker.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pushraker
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Push notifications for Klipper printers: a Moonraker component with pictures, sent through Apprise (ntfy, Pushover, Telegram, Discord, webhooks, email)
5
5
  Author: noon92
6
6
  License-Expression: GPL-3.0-or-later
@@ -16,6 +16,7 @@ License-File: LICENSE
16
16
  Requires-Dist: apprise>=1.9
17
17
  Requires-Dist: requests
18
18
  Requires-Dist: Pillow>=10
19
+ Requires-Dist: jinja2>=3.0
19
20
  Dynamic: license-file
20
21
 
21
22
  # pushraker
@@ -24,7 +25,9 @@ Push notifications for Klipper printers, as a Moonraker component: print
24
25
  started, paused, resumed, complete, cancelled, progress, first layer, faults
25
26
  and shutdowns, power-loss recovery, chamber temperature, filament (Spoolman,
26
27
  backup spools, MMUs), with pictures (camera snapshot, model preview, spool
27
- drawings). Sent through [Apprise](https://github.com/caronc/apprise): ntfy,
28
+ drawings). Every notification's title, contents and image can be edited
29
+ on the page, as Jinja templates over Klipper's values and pushraker's own
30
+ (print job, toolheads, filament, queue). Sent through [Apprise](https://github.com/caronc/apprise): ntfy,
28
31
  Pushover, Gotify, Telegram, Discord, a webhook, email. Configured from its
29
32
  own web page, live, with no Moonraker or Klipper restart.
30
33
 
@@ -33,7 +36,7 @@ It grew out of the Push Notifications feature of the
33
36
  where it is built in. User documentation: the
34
37
  [Push Notifications guide](docs/guide.md).
35
38
 
36
- **Status: 0.2.** The component has been in
39
+ **Status: 0.3.** The component has been in
37
40
  use on the Snapmaker U1 for a while; the page, the settings file and the
38
41
  installer are new. Other printers: the generic parts work (Klipper's
39
42
  standard objects: print_stats, exclude_object, heater_generic, tmc
@@ -4,7 +4,9 @@ Push notifications for Klipper printers, as a Moonraker component: print
4
4
  started, paused, resumed, complete, cancelled, progress, first layer, faults
5
5
  and shutdowns, power-loss recovery, chamber temperature, filament (Spoolman,
6
6
  backup spools, MMUs), with pictures (camera snapshot, model preview, spool
7
- drawings). Sent through [Apprise](https://github.com/caronc/apprise): ntfy,
7
+ drawings). Every notification's title, contents and image can be edited
8
+ on the page, as Jinja templates over Klipper's values and pushraker's own
9
+ (print job, toolheads, filament, queue). Sent through [Apprise](https://github.com/caronc/apprise): ntfy,
8
10
  Pushover, Gotify, Telegram, Discord, a webhook, email. Configured from its
9
11
  own web page, live, with no Moonraker or Klipper restart.
10
12
 
@@ -13,7 +15,7 @@ It grew out of the Push Notifications feature of the
13
15
  where it is built in. User documentation: the
14
16
  [Push Notifications guide](docs/guide.md).
15
17
 
16
- **Status: 0.2.** The component has been in
18
+ **Status: 0.3.** The component has been in
17
19
  use on the Snapmaker U1 for a while; the page, the settings file and the
18
20
  installer are new. Other printers: the generic parts work (Klipper's
19
21
  standard objects: print_stats, exclude_object, heater_generic, tmc
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pushraker"
7
- version = "0.3.2"
7
+ version = "0.3.4"
8
8
  description = "Push notifications for Klipper printers: a Moonraker component with pictures, sent through Apprise (ntfy, Pushover, Telegram, Discord, webhooks, email)"
9
9
  readme = "README.md"
10
10
  license = "GPL-3.0-or-later"
@@ -21,6 +21,7 @@ dependencies = [
21
21
  "apprise>=1.9",
22
22
  "requests",
23
23
  "Pillow>=10",
24
+ "jinja2>=3.0",
24
25
  ]
25
26
 
26
27
  [project.urls]
@@ -31,4 +32,4 @@ Issues = "https://github.com/noon92/pushraker/issues"
31
32
  where = ["src"]
32
33
 
33
34
  [tool.setuptools.package-data]
34
- pushraker = ["web/*", "klipper/*"]
35
+ pushraker = ["web/*", "klipper/*", "templates/*"]
@@ -4,4 +4,4 @@
4
4
 
5
5
  """Push notifications for Klipper printers, as a Moonraker component."""
6
6
 
7
- __version__ = "0.3.2"
7
+ __version__ = "0.3.4"