VoxCommando Forum

General Discussion => General Discussion => Topic started by: Soda97 on January 29, 2015, 06:46:28 PM

Title: How not to repeat same event/commands within certain amount of time
Post by: Soda97 on January 29, 2015, 06:46:28 PM
Sorry, I don't know if this has been discussed before but here's the scenario.

I just figured out that I could send a command to disarm my alarm system.  So I'm gonna set up the Location from IFTTT and send me an email (or event) to trigger this command and maybe turn on light and some other stuff.  Say me and my wifey both set this up, how can I tell VC not to repeat the event or command twice ?  What is the best way to go about this? 
Title: Re: How not to repeat same event/commands within certain amount of time
Post by: Haddood on January 30, 2015, 03:04:33 PM
one way is using a variable and a timer ...
first event set the variable to disable ... timer will reset it to enable ... and your event will check the variable before performing action
(there was a thread about a timer with a kill function) ...

Experts will give an easier approach