c_evening_daylight.cfg modified - 19/04/25 - 00:16:22
This commit is contained in:
1 parent
9ac2e87cd8
commit
a4d09efd77
1 file changed
+2
-2
@@ -18,8 +18,8 @@ gcode:
|
||||
|
||||
{% set rounded_target = (target * 100)|int / 100.0 %}
|
||||
{% if rounded_target != last_brightness %}
|
||||
SET_PIN PIN=daylight VALUE={{ rounded_target }}
|
||||
SET_GCODE_VARIABLE MACRO=EVENING_DAYLIGHT VARIABLE=last_brightness VALUE={{ rounded_target }}
|
||||
SET_PIN PIN=daylight VALUE={rounded_target}
|
||||
SET_GCODE_VARIABLE MACRO=EVENING_DAYLIGHT VARIABLE=last_brightness VALUE={rounded_target}
|
||||
|
||||
{% set time_display = hour|string ~ ":" ~ ("%02d"|format(minute)) %}
|
||||
{% set fade_msg = "🌗 Daylight: " ~ (rounded_target * 100)|int|string ~ "% (" ~ time_display ~ ")" %}
|
||||
|
||||
Reference in new issue
Block a user