Page 1 of 1

Sleep timer

Posted: 20 Jul 2015 01:17
by boywondr16
I realize I'm probably missing the command, but while I have set timer in a flow, what starts the timer counting?

I'm trying to create a sleep timer, so when I hit the shortcut, the countdown begins.

Re: Sleep timer

Posted: 20 Jul 2015 08:04
by MURTUMA
This is maybe the simplest way to achieve that:

FLOW 1:
Trigger: shotcut
Action: input dialog; time or date and time depending on your needs
Action: script; to process the previous action's output and to set global variable

FLOW 2:
Trigger: global variable date/time
Action: anything you want to do after time runs out

I have a flow which contains similar elements you need here. You can use it as reference: This is maybe the simplest way to achieve that:

FLOW 1:
Trigger: shotcut
Action: input dialog; time or date and time depending on your needs
Action: script; to process the previous action's output and to set global variable

FLOW 2:
Trigger: global variable date/time
Action: anything you want to do after time runs out

I have a flow which contains similar elements you need here. You can use it as reference: This is maybe the simplest way to achieve that:

FLOW 1:
Trigger: shotcut
Action: input dialog; time or date and time depending on your needs
Action: script; to process the previous action's output and to set global variable

FLOW 2:
Trigger: global variable date/time
Action: anything you want to do after time runs out

I have a flow which contains similar elements you need here. You can use it as reference: http://automagic4android.com/flow.php?i ... 31a7c83572