Page 1 of 1
frequency for script_time_ping.lua
Posted: Monday 07 March 2016 19:09
by manjh
I put some pings into a lua script called script_time_ping.lua, and it works just fine.
In fact, it works "too good", since it is being invoked just about once every second or two... I don't need that, once a minute would be sufficient.
Is there a way to change the frequency of invoking this script?
Hans
Re: frequency for script_time_ping.lua
Posted: Monday 07 March 2016 19:12
by jvdz
It will only be ran one time per minute by the event system.
How did you determine it is ran more frequent?
Jos
Re: frequency for script_time_ping.lua
Posted: Monday 07 March 2016 20:30
by manjh
Got it. On the Domoticz events page, under the label "event name" there are three fields.
First one is clear: event name.
Second is a dropdown, which toggles between LUA and Blockly.
The third is a bit myterious, but I think it determines the trigger for the script.
It was on "all", but now I have selected "time" and this decreases the frequency.
Afterthought: is there a Wiki page that describes the event screen? I haven't found one...
Re: frequency for script_time_ping.lua
Posted: Monday 07 March 2016 21:46
by jvdz
Guess you are using the build-in script option as else I am not sure what you are talking about?
Jos
Re: frequency for script_time_ping.lua
Posted: Monday 07 March 2016 23:11
by manjh
Correct. On the Domoticz server page "events" I can create Blockly and LUA scripts. That's where the three fields are.