feat: Add an option to add the remaining spool weight to the title-bar (#1662)

* Add configurable Spoolman titlebar status

* Render Spoolman titlebar item with heaters

* Prioritize explicit titlebar items including Spoolman

* Tighten Spoolman titlebar icon spacing

* Color Spoolman titlebar icon from active filament

* Make low spool alert icon fully red

* Color all spool icon fills for low alert

* Show placeholder weight when spool data is unavailable

* Rename spool titlebar config aliases

* Make spool titlebar config names explicit

* Fix pycodestyle line length issue

* Use black fallback for missing spool color

* Refetch active spool on missing spool id event

* Differentiate null and missing spool ids

* Respect titlebar limits, simplify spool alert, and document Spoolman dependency

* fix issues with implementation

* rework spoolman label spacing and style

* Fix spool icon pixbuf sizing

* Improve spool titlebar icon rendering

* Revert "Improve spool titlebar icon rendering"

This reverts commit 3039df0c7cd8a60c1b3e5e3df59bbe06cacd6829.

* Align spool titlebar rendering with tested layout

* set a low limit equal to the one in the docs

* spoolman_low use warning instead of error due to high usage warning causing low visibility, it also improves contrast overall

* remove usage or regular expressions

reason is performance overhead and maintanability concerns

---------

Co-authored-by: Alfredo Monclus <alfredomonclus@gmail.com>
This commit is contained in:
locki-czandAlfredo Monclus authored and GitHub committed 2026-04-03 20:06:24 -03:00
1 parent 2004592568
commit 0293a63ed3
6 files changed
+189 -8

No files matched your search

+7 -2
View File
@@ -70,7 +70,7 @@ moonraker_port: 7125
# moonraker_ssl: False
# If you're using the route_prefix option in your moonraker config, specify it here.
# This can be useful for running multiple printers behind a path-based reverse proxy.
# Most installs will not need this.
# Most installs will not need this.
# moonraker_path: printer1
# Moonraker API key if this host is not connecting from a trusted client IP
# moonraker_api_key: False
@@ -87,12 +87,17 @@ moonraker_port: 7125
# Define what items should be shown in titlebar besides the extruder and bed
# the name must be the same as defined in the klipper config
# valid options are temperature_sensors or temperature_fans, or heater_generic
# titlebar_items: chamber, MCU, Pi
# There is a special item named "spool" that depends on Spoolman data provided through Moonraker
# titlebar_items: chamber, MCU, Pi, spool
# The style of the user defined items in the titlebar
# Can be 'full' indicating that the full name is shown, 'short' for the first letter, or None (default) for no name
# titlebar_name_type: None
# Low limit for remaining spool weight in the title bar, in grams.
# When the active spool drops below this value, the spool icon and weight turn red.
# spool_low_limit: 20
# Z probe calibrate position
# By default it tries to guess the correct location
# it will try using zero reference position, safe_z, mesh midddle, middle of axis length, etc