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
Run the roll only once
Moderators: grovkillen, Stuntteam, TD-er
Re: Run the roll only once
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
The Wiki is your friend, in terms of how to do it
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Run the roll only once
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.
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: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 101 guests