Search found 4 matches

by Walduss
Saturday 25 March 2017 13:23
Forum: LUA
Topic: LUA script question?
Replies: 6
Views: 1574

Re: LUA script question?

Thanks a lot for helping!!
It works very good !
by Walduss
Saturday 25 March 2017 0:11
Forum: LUA
Topic: LUA script question?
Replies: 6
Views: 1574

Re: LUA script question?

Mystery solved :) I didn't check time option in built in editor. Thx.
I use the built in ping option in Domoticz. No need for scripting at all
Where I can find it? I check all option but I don't see it...
by Walduss
Friday 24 March 2017 14:22
Forum: LUA
Topic: LUA script question?
Replies: 6
Views: 1574

Re: LUA script question?

Thanks Jos for suggestions.
I created in internal editor but need to check if this is set to "ALL".

I would only set the dummy switch when it is not the same, so test against the current value.
This is good point but first I wanted to understand why I got this results, so for sure I will optimize ...
by Walduss
Friday 24 March 2017 13:37
Forum: LUA
Topic: LUA script question?
Replies: 6
Views: 1574

LUA script question?

Hi guys

Could someone explain me this strange behavior?
I have dummy switch which show me state of internet connection.
I used script to update it as below

commandArray = {}

ping_success=os.execute('ping -c1 8.8.8.8')
if ping_success then
print("ping success")
commandArray['Internet']='On ...