Page 1 of 1

Run the roll only once

Posted: 13 Feb 2019, 17:07
by wthiess
Hello!
I am desperate. I would like to send a mail at temperature <5 degrees.
Unfortunately, my role then sends an e-mail every 5 seconds. Every 5 seconds the temperature value is read out. But I only want one mail. And only at the first fall below the temperature. Please help.
lg
wolfgang

Re: Run the roll only once

Posted: 13 Feb 2019, 18:35
by mrwee
Dummy variable which is checked before sending e-mails, and set when the <5 degree is triggered. Consider what should reset it again? 10 degrees or ?

The Wiki is your friend, in terms of how to do it

Re: Run the roll only once

Posted: 13 Feb 2019, 19:15
by grovkillen
Yes as long as the temperature is below that temperature the event will trigger once every interval (that you set). You need to have a variable that is set to (lets say) 1 as soon as the email is sent and only if that variable is 0 you send an email. The variable is set to zero once the temperature is above the given temperature.

If it sounds complicated then try and come back here and we'll help out.