Page 1 of 1

ping problem

Posted: Friday 27 May 2016 20:34
by tiga
i am using the "System Alive Checker" function now for three weeks or so to ping some phones.
for example my brothers phone, i gave it a static ip based on its mac adres.
domoticz is pinging that ip and it is connected to a dummy switch on or off.

BUT.....when i look at the "last seen" date and time it is not right, becouse he was not here at that time or even that day!
the ip is seen but he lives 15 km away......
i have that problem with all my ping devices.

am i missing something or am i doing something wrong??
can it be fixed,is it a bugg?

please help
thanks

Re: ping problem

Posted: Friday 27 May 2016 20:43
by jvdz
It is a known issue and reported ample times. (Search is your friend ;) )
Somebody will have to do some debugging why this is happening but that hasn't happen as yet.

Jos

Re: ping problem

Posted: Friday 27 May 2016 21:05
by woody4165
I created a dummy switch and a script that runs every minute and that update it

Code: Select all

commandArray = {}
 url_esp = xxx.xxx.xxx.xxx
 ping_success=os.execute('ping -c3 '..url_esp)
 if ping_success then
   commandArray['CheckIpEsp']='On'
 else
    commandArray['CheckIpEsp']='Off'	
 end
 
return commandArray
I made it to check if an ESP8266 is alive and connected to Wifi
and it's working