smileyw Posted July 19, 2010 Posted July 19, 2010 I want to write a simple program that would e-mail me if the garage door is open for more than say 15 minutes or something. I have a IOlinc running, so I can see the status change from closed to open, but how do I then tell it to wait 15 minutes, and if the door is still open, then send an e-mail? I can figure everything out except how to add another if/then after waiting 15 minutes. I suspect this is simple, so hopefully someone can quickly help? Thanks, W
Michel Kohanim Posted July 19, 2010 Posted July 19, 2010 Hello ! It's quite simple! The most important thing you have to note is that the Wait statement may be interrupted. So, all you have to do is to add a Wait for 15 minutes in the Action section before the Notify statement. Now, if the status of the program changes within that 15 minutes, then no notifications are sent. Otherwise, notification is sent. With kind regards, Michel
Recommended Posts