Page 1 of 1

Adding an alarm 30 minutes from now

Posted: 22 Jul 2014 12:55
by Ghlave
I have a flow that's supposed to set an alarm 30 seconds from the trigger time. It's kicked off by a Global variable. The problem is, it works great sometimes, and other times I get that alarm many hours away instead of 30 seconds. It goes like this:

Global Variable:gloabl_MotorcycleMode
-(Condition) Expression: global_MotorcycleMode
-(False): SetAlaram: Remember keys at
{triggertime,dateformat,HH}
{addSeconds (getDate(),30),dateformat,mm}


Did I make my calculation on 30 seconds for now wrong, or should I not be using triggertime for this?

Re: Adding an alarm 30 minutes from now

Posted: 22 Jul 2014 15:13
by Ghlave
Actually I just noticed my topic title. I meant seconds not minutes.

Re: Adding an alarm 30 minutes from now

Posted: 22 Jul 2014 16:50
by Ghlave
After missing with it for a while, I e notice a pattern. Every other time, it works. The other time, it's setting the alarm for 23 hours and 59 minutes. ???

Re: Adding an alarm 30 minutes from now

Posted: 23 Jul 2014 17:56
by Martin
Hi,

Could you please share the flow where you observe this behavior (menu->Forum, select Publish Flows/Widgets and copy the generated link to a post).

Thanks & Regards,
Martin