31.08.2017, 11:14
Hello from Spain,
i have a script with a secuence in KNX, using "os.sleep(t)" to do a delay between telegrams. It works well, but in any case, the secuence duration is 4-5 minutes.
¿How can i do to stop the secuence in the middle of execution? Any "break" or "exit" or "kill" exception to stop the script.
Thanks!
Iván.
i have a script with a secuence in KNX, using "os.sleep(t)" to do a delay between telegrams. It works well, but in any case, the secuence duration is 4-5 minutes.
¿How can i do to stop the secuence in the middle of execution? Any "break" or "exit" or "kill" exception to stop the script.
Code:
os.sleep(23)
grp.write('0/0/39', 0)
grp.write('0/0/53', 0)
grp.write('0/0/56', 0)
grp.write('0/0/58', 0)
grp.write('0/0/40', 0)
grp.write('0/0/62', 0)
grp.write('0/0/47', 0)
grp.write('0/0/41', 1)
grp.write('0/0/7', 1)
grp.write('0/5/8', 100)
grp.write('0/0/29', 1)
grp.write('0/0/33', 1)
os.sleep(14)
grp.write('0/0/41', 0)
grp.write('0/0/7', 0)
grp.write('0/0/29', 0)
grp.write('0/0/33', 0)
grp.write('0/0/38', 1)
grp.write('0/0/59', 1)
grp.write('0/0/60', 1)
grp.write('0/0/61', 1)
os.sleep(39)
grp.write('0/5/8', 0)
grp.write('0/0/38', 0)
grp.write('0/0/59', 0)
grp.write('0/0/60', 0)
grp.write('0/0/61', 0)
grp.write('0/0/29', 1)
Thanks!
Iván.