julianschill / klipper-led_effect

LED effects plugin for klipper
GNU General Public License v3.0
645 stars 117 forks source link

Temperature_range #156

Open Silent4719 opened 10 months ago

Silent4719 commented 10 months ago

Hello,

Would there be a simple solution to activate an effect according to a temperature range?

The ideal would be something like that:


[led_effect stroboscope]
leds:
    neopixel:case (1-10)
autostart:                          false
frame_rate:                         10
heater:                             extruder
temperature_range:                  170-200
layers:
    strobe 0.1 0.5 top (1.0, 0.0, 0.0)
    static 0 0 subtract (0.9, 0.9, 0.9)

The stroboscopic and static effect would activate when the extruder is between 170 and 200 °.

julianschill commented 9 months ago

Should be possible when you multiply a heater effect. Put (1,1,1,1) as the last color and multiply with the effect you want to see. It will switch to (1,1,1,1) when the temperature is reached.

No temperature range at the moment, though.

julianschill commented 1 month ago

This should work:

strobe 1.00 0.50 multiply (1.00,0.00,0.00) 
static 0.00 0.00 divide (1.00,1.00,1.00) 
temperature 170 200 top (0.00,0.00,0.00),(1.00,1.00,1.00),(0.00,0.00,0.00)