- Code: Select all
import time
TimeDelay=indigo.variables[295357455] # typically 5-10 minutes
delay_secs = 60*int(TimeDelay.value)
time.sleep(delay_secs)
OHdisable=indigo.devices[444538556]
indigo.iodevice.setBinaryOutput(OHdisable, index=0, value=True)
There are times when I would like to terminate this script before the end of the time delay. I'd like to do it by running another python script set up as an Action Group. I've been going through the python documentation regarding processes and threads but I can't figure out how to do this.
A related question. Is there a way to show the current processes associated with a linked script? I know how to kill a process using the MacOS Activity Monitor but I looked in the Activity Monitor and I don't even see the Indigo Server process. Where would I find a list of processes associated with Indigo and python scripts?