Time based triggers

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Time based triggers

Post by Rafi4 » 20 Oct 2019 13:34

Hi Martin
For example
Trigger contains time every sunday at 4.00 p.m. my device is switched off at triggertime (4.00 p.m) . If I switched on my device at 4.30 p.m this flow will execute on next Sunday. How can I execute this flow this Sunday?

I think that I have explained better.
from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

icefox56
Posts: 53
Joined: 15 Aug 2017 02:56

Re: Time based triggers

Post by icefox56 » 20 Oct 2019 16:49

Instead of using fixed time as trigger use Global variable date/time as trigger and tick "Trigger immediately on missed events". In this way flow will execute when you switch on the phone.

To repeat this I add a script:

Code: Select all

global_var=addDays(global_var, 7)
So if you selected a Sunday in your Global variable date/time then after execution of flow the date will get added by 7, so it will be set for execution on next Sunday.
Asus Zenfone Max pro M1, Stock android, Oreo 8.1, Rooted

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Time based triggers

Post by Rafi4 » 20 Oct 2019 23:46

Hi icefox56
I know about the script. is there any another way to get to work?

from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

icefox56
Posts: 53
Joined: 15 Aug 2017 02:56

Re: Time based triggers

Post by icefox56 » 21 Oct 2019 02:26

As per my first answer the question you asked in original post is answered. What additional help do you need?

Friendly reminder: don't confuse Global variable date/time with normal variables. It's a trigger available in Automagic.
Asus Zenfone Max pro M1, Stock android, Oreo 8.1, Rooted

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Time based triggers

Post by Rafi4 » 21 Oct 2019 02:42

Hi icefox56

I am telling about time trigger not about global variable date and time.

See screen shot.
from record4
Attachments
IMG_20191021_081240-1.jpg
Time trigger
IMG_20191021_081240-1.jpg (32.17 KiB) Viewed 13825 times
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

icefox56
Posts: 53
Joined: 15 Aug 2017 02:56

Re: Time based triggers

Post by icefox56 » 21 Oct 2019 03:24

Global variable date/time is a trigger. Go check it out in "time" category.

Don't use the fixed time trigger. It doesn't work if your phone is switched off. Use Global variable date/time trigger, and tick "trigger immediately on missed event". In that way the flow will work even if the phone was switched off at, say 4:00pm, but you switched it on at 4:30pm.

Hope you understand.
Attachments
NOTABLE-00004.jpg
NOTABLE-00004.jpg (196.02 KiB) Viewed 13822 times
NOTABLE-00003.jpg
NOTABLE-00003.jpg (253.29 KiB) Viewed 13823 times
Asus Zenfone Max pro M1, Stock android, Oreo 8.1, Rooted

icefox56
Posts: 53
Joined: 15 Aug 2017 02:56

Re: Time based triggers

Post by icefox56 » 21 Oct 2019 03:35

If you are asking, can you do this with normal time trigger?
Then as far as I know, the answer is NO.
Asus Zenfone Max pro M1, Stock android, Oreo 8.1, Rooted

Post Reply