Time trigger when powered off

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
Posts: 10
Joined: 19 Feb 2017 12:20

Time trigger when powered off

Post by Luca.Biraghi » 30 Jul 2017 17:22

Hi everyone.
I just wanted to ask if there is an easy and effective way to let Automagic start a flow as soon as booted if it couldn't do "on time" because the tablet was powered down.

As example:
Trigger: time based trigger. Every day at 00:20 start the flow
Acion: increment global variable "a" by 1

If one night I shut down the tablet at 23:00 till morning at 7:00, trigger shouldn't start, right? I'm looking for an easy way to let the trigger start when I boot the device at 7:00.

Of course it shouldn't activate the flow every time I boot the device but only if there is a "missed" trigger at 00:20.

Any idea?

Thanks for help.

from Italy

User avatar
Posts: 2476
Joined: 21 Jul 2017 17:50

Re: Time trigger when powered off

Post by Desmanto » 31 Jul 2017 00:24

You need to use Trigger Global Variable Date/Time, check the Trigger Immediately. Then in action, add one more action to add the GloVar by 24 hours.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply