Description
Requested feature
I'd like to be able to have the text of a button include some data from the printers current state.
E.g. I have a menu "Filaments" to do filament related tasks. I'd like that button to include the currently installed filament, as read from a save_variables
field: "Filaments: PLA".
This should be accomplished by using a template in the name of the button that includes an expression to get the data to display:
[menu __main filament]
name: Filaments: {printer.save_variables.variables.filaments.current.name}
Ideally the syntax would match the existing syntax used in Macros so there isn't anything new to learn or document.
If the value of this changes the name displayed in the interface should also be updated. Usually klipper objects update at a 2hz rate and that's fine. i.e. I don't have any special responsiveness requirements when printer state is changed by a macro.
Is your feature request related to a problem?
No response
Describe alternatives you have considered
I think the alternative would be writing a custom panel or button. I'd like that but it seems very overkill for this feature.
Additional information
No response