Adding an alarm 30 minutes from now

Post your questions and help other users.

Moderator: Martin

Post Reply
Ghlave
Posts: 28
Joined: 06 Aug 2013 18:06

Adding an alarm 30 minutes from now

Post by Ghlave » 22 Jul 2014 12:55

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?

Ghlave
Posts: 28
Joined: 06 Aug 2013 18:06

Re: Adding an alarm 30 minutes from now

Post by Ghlave » 22 Jul 2014 15:13

Actually I just noticed my topic title. I meant seconds not minutes.

Ghlave
Posts: 28
Joined: 06 Aug 2013 18:06

Re: Adding an alarm 30 minutes from now

Post by Ghlave » 22 Jul 2014 16:50

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. ???

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Adding an alarm 30 minutes from now

Post by Martin » 23 Jul 2014 17:56

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

Post Reply