ping problem

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
tiga
Posts: 159
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

ping problem

Post 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
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: ping problem

Post 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
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: ping problem

Post 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
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest