frequency for script_time_ping.lua

Moderator: leecollings

Post Reply
manjh
Posts: 859
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

frequency for script_time_ping.lua

Post 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
Hans
User avatar
jvdz
Posts: 2445
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: frequency for script_time_ping.lua

Post 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
manjh
Posts: 859
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: frequency for script_time_ping.lua

Post 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...
Hans
User avatar
jvdz
Posts: 2445
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: frequency for script_time_ping.lua

Post by jvdz »

Guess you are using the build-in script option as else I am not sure what you are talking about?

Jos
manjh
Posts: 859
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: frequency for script_time_ping.lua

Post by manjh »

Correct. On the Domoticz server page "events" I can create Blockly and LUA scripts. That's where the three fields are.
Hans
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest