- Posted on
Sat Feb 03, 2018 11:45 am
-
Duchateau
offline
-
- Posts: 9
- Joined: Oct 20, 2015
I have a trigger that makes variable count off (python script) :
from time import sleep
start_counter = 15
min_counter = 0
increment = -1
for n in range(start_counter, min_counter, increment):
indigo.variable.updateValue(31954246, str(n))
sleep(60)
##Only the sleep time is in seconds. Set that to the number of seconds you want between increments.
##The start_counter, max_counter and increment value are all things that you can set to anything you like.
##Lastly, save the script to a file and then link to it. That will keep it from appearing to run straight to the end.
##If you run it as an embedded script, Indigo won't update the UI until it's completely finished (and if it runs over 10 seconds, Indigo will kill it).###
Than i have a trigger that says when the variable becomes equal to 1: speak a notification or send message