Can I run a flow from within a script?
Posted: 07 Nov 2016 22:41
I've written a simplistic flow to flash the LED on my Nexus 6 (Flashlight On / Sleep 1s / Flashlight Off).
I would like to call this flow from within a loop in a script - the script would take the number of flashes as a parameter, and use the loop to call the flow that number of times (so I could, for example, get the LED to flash 5 times if a particular event occurred).
I've not tried writing any scripts in Automagic before, and I can't see how to call a flow from within a While loop. Any assistance appreciated.
(Also interested in any better ways to achieve what I'm trying to do, but this is primarily a learning exercise for me...)
I would like to call this flow from within a loop in a script - the script would take the number of flashes as a parameter, and use the loop to call the flow that number of times (so I could, for example, get the LED to flash 5 times if a particular event occurred).
I've not tried writing any scripts in Automagic before, and I can't see how to call a flow from within a While loop. Any assistance appreciated.
(Also interested in any better ways to achieve what I'm trying to do, but this is primarily a learning exercise for me...)