Run the roll only once

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Normal user
Posts: 6
Joined: 29 Jul 2017, 00:53

Run the roll only once

#1 Post by wthiess » 13 Feb 2019, 17:07

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.

Normal user
Posts: 126
Joined: 31 Aug 2016, 12:52

Re: Run the roll only once

#2 Post by mrwee » 13 Feb 2019, 18:35

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

User avatar
Core team member
Posts: 3139
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden

Re: Run the roll only once

#3 Post by grovkillen » 13 Feb 2019, 19:15

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.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop:
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests