Changing interval of LUA time scripts
Posted: Saturday 17 September 2016 9:21
Hi guys,
I'm working on an alarm system based on LUA scripting.
I want to include a delay that will allow me to exit the house and close the frontdoor before the alarm is enabled.
Similarly when entering, i want to have the time to enter the security code for disarming the alarm, before the sirens are triggered.
Both functions already work quite well, but i'm limited by the fact domoticz calls the time_ scripts only every minute.
I would like to change this to every 10 seconds, such that the delay times i programmed can be set more accurately.
Is there any way to do so?
I already thought of making a cron job for periodically updating a Domoticz user variable through the JSON API, and have my LUA script called upon change of this variable.
However this seems like quite a dirty workaround to me, perhaps not the best practice.
Any thoughts?
I'm working on an alarm system based on LUA scripting.
I want to include a delay that will allow me to exit the house and close the frontdoor before the alarm is enabled.
Similarly when entering, i want to have the time to enter the security code for disarming the alarm, before the sirens are triggered.
Both functions already work quite well, but i'm limited by the fact domoticz calls the time_ scripts only every minute.
I would like to change this to every 10 seconds, such that the delay times i programmed can be set more accurately.
Is there any way to do so?
I already thought of making a cron job for periodically updating a Domoticz user variable through the JSON API, and have my LUA script called upon change of this variable.
However this seems like quite a dirty workaround to me, perhaps not the best practice.
Any thoughts?