- Code: Select all
repeat with i from 1 to 45
execute group "Slaapkamer Wekker - Snooze" in (40 * i)
end repeat
The python documentation has no option to specify a delay.
How should I convert this?
repeat with i from 1 to 45
execute group "Slaapkamer Wekker - Snooze" in (40 * i)
end repeat
# This will run the script with i going from 1 to 45:
for i in range(1, 46):
# sleep for the number of seconds
self.sleep(40 * i)
# execute the action group
indigo.actionGroup.execute(ID_OF_ACTION_GROUP)
import time
time.sleep(40)
Users browsing this forum: No registered users and 0 guests