Matthew's Cutter Temp loop

From Gwen Morse's Wiki
Jump to: navigation, search

This was written by Matthew from Kydance.net (Luthe, Utoxin, Morric, etc).

; This handles showing cutter temp over time to make it easier to see when it has
; finished cooling off. Only lets one timer run at once, and only runs until the
; cutter has reached 0.0 temp.
; This was written by Matthew from Kydance.net (Luthe, Utoxin, Morric, etc).

/set CTEMP_LOCK=0
/def cutter_temp = /set CTEMP_LOCK=0 %; /send -w cutter temp
/def -p1 -mregexp -t"^Your cutter temperature is (?!0\.\s*$)[0-9](\.[0-9]*)?" \
   cutter_cool = /IF (CTEMP_LOCK == 0) /set CTEMP_LOCK=1 %; \
   /repeat -120 1 /cutter_temp %; /ENDIF