Publishing iDryer macros and tips for code formatting

#========================================================
#=====================iDryer macros======================
#========================================================
[gcode_macro OFF_U1]
gcode:
UPDATE_DELAYED_GCODE ID=_UPDATE_U1 DURATION=0
UPDATE_DELAYED_GCODE ID=_TOGGLE_SERVO_U1 DURATION=0
SET_HEATER_TEMPERATURE HEATER=iDryer_U1_Heater TARGET=0

[delayed_gcode _OFF_U1]
gcode:
OFF_U1

[gcode_macro PLA_U1]
variable_unit_temp: 55
variable_unit_duration: 180
variable_unit_delta: 10
gcode:
DRY_U1 UNIT_TEMPERATURE={unit_temp} HUMIDITY=10 TIME={unit_duration} DELTA={unit_delta}

[gcode_macro PETG_U1]
variable_unit_temp: 65
variable_unit_duration: 240
variable_unit_delta: 15
gcode:
DRY_U1 UNIT_TEMPERATURE={unit_temp} HUMIDITY=10 TIME={unit_duration} DELTA={unit_delta}

[gcode_macro TPU_U1]
variable_unit_temp: 60
variable_unit_duration: 300
variable_unit_delta: 15
gcode:
DRY_U1 UNIT_TEMPERATURE={unit_temp} HUMIDITY=10 TIME={unit_duration} DELTA={unit_delta}

[gcode_macro ABS_U1]
variable_unit_temp: 80
variable_unit_duration: 240
variable_unit_delta: 20
gcode:
DRY_U1 UNIT_TEMPERATURE={unit_temp} HUMIDITY=10 TIME={unit_duration} DELTA={unit_delta}

[gcode_macro PA_U1]
variable_unit_temp: 90
variable_unit_duration: 240
variable_unit_delta: 30
gcode:
DRY_U1 UNIT_TEMPERATURE={unit_temp} HUMIDITY=10 TIME={unit_duration} DELTA={unit_delta}

[gcode_macro DRY_U1]
variable_temp: 5
variable_humidity: 5
variable_duration: 5
variable_off_timer_set: 0
variable_delta_high: 15
variable_servo_angle: 0 #degrees
variable_servo_open_angle: 40 #degrees
variable_servo_closed_angle: 94 #degrees
variable_servo_open_time: 10 #second
variable_servo_closed_time: 300 #second
variable_data: {}
gcode:
{% set set_unit_temp = params.UNIT_TEMPERATURE|default(40)|int %}
{% set set_unit_humidity = params.HUMIDITY|default(10)|int%}
{% set set_unit_duration = params.TIME|default(240)|int%}
{% set set_delta_high = params.DELTA|default(10)|int%}

SET_GCODE_VARIABLE MACRO=DRY_U1 VARIABLE=servo_angle VALUE={servo_closed_angle}
SET_SERVO SERVO=srv_U1 ANGLE={servo_angle}

{ action_respond_info(" DRY_U1 ----- [ temp %s | humidity %s | duration %s ] -----" %(set_unit_temp, set_unit_humidity, set_unit_duration) )}

{action_respond_info(“Humidity %.2f%%” %(printer[“sht3x iDryer_U1_Air”].humidity))}
SET_GCODE_VARIABLE MACRO=DRY_U1 VARIABLE=temp VALUE={set_unit_temp}
SET_GCODE_VARIABLE MACRO=DRY_U1 VARIABLE=humidity VALUE={set_unit_humidity}
SET_GCODE_VARIABLE MACRO=DRY_U1 VARIABLE=duration VALUE={set_unit_duration}
SET_GCODE_VARIABLE MACRO=DRY_U1 VARIABLE=delta_high VALUE={set_delta_high}

UPDATE_DELAYED_GCODE ID=LED_SERVICE DURATION=1
UPDATE_DELAYED_GCODE ID=_UPDATE_U1 DURATION=1
UPDATE_DELAYED_GCODE ID=_TOGGLE_SERVO_U1 DURATION=2

🇷🇺 Оригинал

#========================================================
#=====================iDryer macros======================
#========================================================
[gcode_macro OFF_U1]
gcode:
UPDATE_DELAYED_GCODE ID=_UPDATE_U1 DURATION=0
UPDATE_DELAYED_GCODE ID=_TOGGLE_SERVO_U1 DURATION=0
SET_HEATER_TEMPERATURE HEATER=iDryer_U1_Heater TARGET=0

[delayed_gcode _OFF_U1]
gcode:
OFF_U1

[gcode_macro PLA_U1]
variable_unit_temp: 55
variable_unit_duration: 180
variable_unit_delta: 10
gcode:
DRY_U1 UNIT_TEMPERATURE={unit_temp} HUMIDITY=10 TIME={unit_duration} DELTA={unit_delta}

[gcode_macro PETG_U1]
variable_unit_temp: 65
variable_unit_duration: 240
variable_unit_delta: 15
gcode:
DRY_U1 UNIT_TEMPERATURE={unit_temp} HUMIDITY=10 TIME={unit_duration} DELTA={unit_delta}

[gcode_macro TPU_U1]
variable_unit_temp: 60
variable_unit_duration: 300
variable_unit_delta: 15
gcode:
DRY_U1 UNIT_TEMPERATURE={unit_temp} HUMIDITY=10 TIME={unit_duration} DELTA={unit_delta}

[gcode_macro ABS_U1]
variable_unit_temp: 80
variable_unit_duration: 240
variable_unit_delta: 20
gcode:
DRY_U1 UNIT_TEMPERATURE={unit_temp} HUMIDITY=10 TIME={unit_duration} DELTA={unit_delta}

[gcode_macro PA_U1]
variable_unit_temp: 90
variable_unit_duration: 240
variable_unit_delta: 30
gcode:
DRY_U1 UNIT_TEMPERATURE={unit_temp} HUMIDITY=10 TIME={unit_duration} DELTA={unit_delta}

[gcode_macro DRY_U1]
variable_temp: 5
variable_humidity: 5
variable_duration: 5
variable_off_timer_set: 0
variable_delta_high: 15
variable_servo_angle: 0 #degrees
variable_servo_open_angle: 40 #degrees
variable_servo_closed_angle: 94 #degrees
variable_servo_open_time: 10 #second
variable_servo_closed_time: 300 #second
variable_data: {}
gcode:
{% set set_unit_temp = params.UNIT_TEMPERATURE|default(40)|int %}
{% set set_unit_humidity = params.HUMIDITY|default(10)|int%}
{% set set_unit_duration = params.TIME|default(240)|int%}
{% set set_delta_high = params.DELTA|default(10)|int%}

SET_GCODE_VARIABLE MACRO=DRY_U1 VARIABLE=servo_angle VALUE={servo_closed_angle}
SET_SERVO SERVO=srv_U1 ANGLE={servo_angle}

{ action_respond_info(" DRY_U1 ----- [ temp %s | humidity %s | duration %s ] -----" %(set_unit_temp, set_unit_humidity, set_unit_duration) )}

{action_respond_info(“Humidity %.2f%%” %(printer[“sht3x iDryer_U1_Air”].humidity))}
SET_GCODE_VARIABLE MACRO=DRY_U1 VARIABLE=temp VALUE={set_unit_temp}
SET_GCODE_VARIABLE MACRO=DRY_U1 VARIABLE=humidity VALUE={set_unit_humidity}
SET_GCODE_VARIABLE MACRO=DRY_U1 VARIABLE=duration VALUE={set_unit_duration}
SET_GCODE_VARIABLE MACRO=DRY_U1 VARIABLE=delta_high VALUE={set_delta_high}

UPDATE_DELAYED_GCODE ID=LED_SERVICE DURATION=1
UPDATE_DELAYED_GCODE ID=_UPDATE_U1 DURATION=1
UPDATE_DELAYED_GCODE ID=_TOGGLE_SERVO_U1 DURATION=2

Please add formatting (select all → extra → mono), otherwise a lot of it might get interpreted as emojis or even omitted altogether…

🇷🇺 Оригинал

Добавьте форматирование, пожалуйста (выделить всё - дополнительно - моно) то многое может быть воспринято как смайлы или вообще опущено…

Better to insert it as code. Like @pavluchenkor (https://t.me/pavluchenkor) did above.

🇷🇺 Оригинал

Лучше сделать всавить как код. Как выше @pavluchenkor (https://t.me/pavluchenkor) делал