Tasker (Download) Forum

Wait until %TIME == Desired time

Hi,

I am working on a Tasker based app that starts a sub task. The main task performs an action (displays the result) and exits but the sub task performs the same action at 9am and 9pm only and then generates notifications if required.

My present implementation is that when the app is launched:
a) the sub task checks the value of %TIME
b) calculates the difference in seconds between %TIMES and “the next action time (9am or pm)”
c) calls Tasker action “wait” for the duration of seconds calculated above

I chose this approach because I don’t know if Tasker allows to just say “sleep until 9am”. If this is possible, which action should I be using? Is that the best battery friendly approach?

Regards
Aman
 

Related:

#1 amankhalid, Apr 12, 2018
The typical method for doing a timed task in Tasker is to use a Profile that has a Time action. When the time arrives the Enter task is launched.

... Thom
 
#2 Thom, Apr 16, 2018 at 2:33 AM
Hi,

The profile based action works well but it does not immediately fire the app to show a scene. Is there a way to do that?

Regards
AK
 
#3 amankhalid, Apr 16, 2018 at 6:02 AM
Two Profiles?

... Thom
 
#4 Thom, Apr 16, 2018 at 6:32 AM
Hi,

If there are two profiles in my project to handle this functionality, is it possible to generate one APK using Tasker factory that has two separate triggers/profiles?

Regards
AK
 
#5 amankhalid, Apr 19, 2018 at 7:00 AM
The structure of Tasker is ... Profile ... Task ... Scene ... Project. I have a Project with 5 Profiles, 15 Tasks, and 12 Scenes.

The answer to your question is to have a Project with two Profiles and crate an APK from it.

... Thom
 
#6 Thom, Apr 19, 2018 at 9:37 AM