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
frequency for script_time_ping.lua
Moderator: leecollings
- 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
It will only be ran one time per minute by the event system.
How did you determine it is ran more frequent?
Jos
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
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...
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
- 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
Guess you are using the build-in script option as else I am not sure what you are talking about?
Jos
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
Correct. On the Domoticz server page "events" I can create Blockly and LUA scripts. That's where the three fields are.
Hans
Who is online
Users browsing this forum: No registered users and 1 guest