How to set alarm 8 hours from now?

1,447 views
Skip to first unread message

Spam Bus

unread,
Apr 10, 2014, 11:32:17 AM4/10/14
to tas...@googlegroups.com
I was just wondering how this can be done in tasker?

to set an alarm for 8 hours from whatever the current time is

easiuser

unread,
Apr 10, 2014, 11:56:29 AM4/10/14
to tas...@googlegroups.com
Variable Set %temp to %TIME + 8 if %TIME < 16 (tick do math)
Variable Set %temp to %TIME - 15 if %TIME >= 16 (tick do math)
Variable Split %temp, splitter .  (the spltter is a period)
Set Alarm Hours %temp1, Minutes %temp2

Spam Bus

unread,
Apr 10, 2014, 12:10:36 PM4/10/14
to tas...@googlegroups.com
thanx, but that doesn't work correctly, it creates an alarm 8 hours and 59 minutes from my current time

Op donderdag 10 april 2014 17:56:29 UTC+2 schreef easiuser:

UncleMike

unread,
Apr 10, 2014, 12:35:26 PM4/10/14
to tas...@googlegroups.com
You may want to look at using the App > Start System Timer action, if it's available on your device.

easiuser

unread,
Apr 10, 2014, 1:07:14 PM4/10/14
to tas...@googlegroups.com
Don't know what you did but this will flash the current time and alarm time.  They are exaclty 8 hours apart:
 
SetNewAlarm (43)
 A1: Variable Set [ Name:%temp To:%TIME+8 Do Maths:On Append:Off ] If [ %TIME < 16 ]
 A2: Variable Set [ Name:%temp To:%TIME-15 Do Maths:On Append:Off ] If [ %TIME > 16 | %TIME = 16 ]
 A3: Variable Split [ Name:%temp Splitter:. Delete Base:Off ]
 A4: Flash [ Text:Current time = %TIME
Alarm time = %temp1:%temp2 Long:On ]
SetNewAlarm.tsk.xml

Spam Bus

unread,
Apr 10, 2014, 1:56:21 PM4/10/14
to tas...@googlegroups.com
your xml file is exactly the same as I allready created it from your first post and still it sets an alarm 8 hours and 59 minutes from now, instead of 8 hours

Op donderdag 10 april 2014 19:07:14 UTC+2 schreef easiuser:

Brandon Horwath

unread,
Apr 10, 2014, 2:08:51 PM4/10/14
to tas...@googlegroups.com
Easy...

Eight Hour Alarm (352)
A1: Variable Set [ Name:%time To:%TIME Do Maths:Off Append:Off ]
A2: Variable Split [ Name:%time Splitter:. Delete Base:Off ]
A3: Variable Add [ Name:%time1 Value:8 Wrap Around:24 ]
A4: Variable Add [ Name:%time2 Value:1 Wrap Around:60 ]
A5: Set Alarm [ Hours:%time1 Minutes:%time2 Message:Eight hour alarm Confirm:Off ]

Spam Bus

unread,
Apr 10, 2014, 2:14:34 PM4/10/14
to tas...@googlegroups.com
thanx that worked

Op donderdag 10 april 2014 20:08:51 UTC+2 schreef Brandon Horwath:
Reply all
Reply to author
Forward
0 new messages