Forum

Can you add a alarm...
 
Notifications
Clear all

Can you add a alarm to a timer?


(@canmorebrewguy)
Active Member
Joined: 5 years ago
Posts: 15
Topic starter  

I was playing with the timers and I could not find a way to set off a alarm when the time is done, is this possible? 


Quote
(@pbruno3)
Reputable Member Admin
Joined: 5 years ago
Posts: 312
 

Hi,

This function will be added in an upcoming release. In the meantime, you can do it with a script. Do you need an example?


ReplyQuote
(@pbruno3)
Reputable Member Admin
Joined: 5 years ago
Posts: 312
 

I realized that was a dumb question... Here is the script to do this, assuming you had a timer called 'Timer 1' and an alarm called 'Alarm 1':

[loop]
wait "Timer 1" Value >= 0000
"Alarm 1" Active = true
sleep 5000
goto loop

 

Note that the sleep statement is there to keep the CPU from re-activating the alarm thousands of times per second. You could change that line to be this instead if you wanted to toggle the execution (this will basically wait for the timer to be reset, but there are lots of ways to skin this cat of course):

wait "Timer 1" Value < 0000

ReplyQuote
Share: