fluidd icon indicating copy to clipboard operation
fluidd copied to clipboard

Macro controls other than buttons

Open tlsomers opened this issue 4 years ago • 4 comments

Is your feature request related to a problem?

Printer options such as LED light have an one-off state or range of parameter values (similar to fans). Hence, for some macros the button approach is not the most suitable one, including that no variables can be used.

Describe the solution you'd like:

Allowing macros with parameters to take the form of other controls, most notably toggles (using boolean variables) or sliders (using int/float variables).

Describe alternatives you've considered:

Currently people need to make custom macro buttons for each option, such as TURN_ON_PRINTER and TURN_OFF_PRINTER.

Affected users and/or setups:

Anyone who uses macros that take parameter values could use this, for instance to more easily repeat z-offset adjustments using an input field + button or a way to toggle turning off of cooling down the printer once the current job finishes.

Additional Context:

I'm not sure if it's possible but the ability to see current variable values (when selected) would be nice for checking, such as seeing whether a magprobe is attached or for instance whether you gave QGLd before (so you don't need to redo it)

tlsomers avatar Jun 22 '21 21:06 tlsomers

Moonraker recently started exposing Klipper output_pin entries and gcode_macro via [power] elements, and that will in turn show on Fluidd Devices menu, so that they can be easily toggled on/off!

https://moonraker.readthedocs.io/en/latest/configuration/#klipper-device-configuration

We might look into having other type of controls for macros, but for on/off devices, I recommend using the solution above!

pedrolamas avatar Feb 20 '22 23:02 pedrolamas