repeatAfterSec Question
Posted: Saturday 25 August 2018 11:43
Hi,
If I have the following in one of my scripts, will it cause dzVents to wait until this is executed before anything else is executed? If so is there any way to push this to the background and continue other stuff?
domoticz.devices('Camera Snapshot').switchOn().forSec(2).repeatAfterSec(3, 10)
This is a bit of code that take shots from my camera if motion is detected when the security panel is engaged - when it gets triggered it seems to prevent the security panel change being processed (so if you then disengage the alarm it takes a while).
Thanks,
Dan
If I have the following in one of my scripts, will it cause dzVents to wait until this is executed before anything else is executed? If so is there any way to push this to the background and continue other stuff?
domoticz.devices('Camera Snapshot').switchOn().forSec(2).repeatAfterSec(3, 10)
This is a bit of code that take shots from my camera if motion is detected when the security panel is engaged - when it gets triggered it seems to prevent the security panel change being processed (so if you then disengage the alarm it takes a while).
Thanks,
Dan