Thanks a lot for helping!!
It works very good !
Search found 4 matches
- Saturday 25 March 2017 13:23
- Forum: LUA
- Topic: LUA script question?
- Replies: 6
- Views: 1574
- 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.
Where I can find it? I check all option but I don't see it...I use the built in ping option in Domoticz. No need for scripting at all
- 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 ...
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 ...
- 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 ...
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 ...