
Re: Need help with variable/timer
That timer script is one way of doing it.
Seems like you could do it with a couple of pieces:
- A schedule that decrements a variable once a minute.
- A trigger that fires when said variable gets to 0 that sends the email. That trigger can also reset the variable to something smaller (maybe like 5) so that when the variable again decrements to 0 again it sends another email - kinda of a pester function.
- An action on the control page that resets the variable to 45 when touched.
Of course you would also want to have actions on the control page to enable/disable the first trigger above - so it wouldn't go off while you're asleep for instance. But I think you get the point.