Files
Macros/Scripts/clear_timelapse.cfg

14 lines
415 B
INI
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[gcode_shell_command clear_tg_timelapse]
command: sh ../Macros/clear_timelapse.sh
timeout: 30.
verbose: True
[gcode_macro CLEAR_TG_TIMELAPSE]
gcode:
{% if printer.idle_timeout.state == "Idle" or printer.idle_timeout.state == "Ready" %}
RUN_SHELL_COMMAND CMD=clear_tg_timelapse
RESPOND MSG="Done :)"
{% else %}
RESPOND MSG="Не-не-не, принтер печатает"
{% endif %}