Hallo ...
Habe ein Problem mit der Anwesenheitskontrolle per ping
in gplot keine anzeige :-[
habe es folgender massen auf gebaut
define Handy_LAN PRESENCE lan-ping 192.168.X.XX 30 600
attr Handy_LAN event-on-change-reading state
attr Handy_LAN ping_count 4
define FileLog_Handy_LAN FileLog ./log/Handy_LAN-%Y.log Handy_LAN
define localTelnet telnet 7075
define SVG_FileLog_Handy_LAN_1 SVG FileLog_Handy_LAN::SVG_FileLog_Handy_LAN_1:CURRENT
die Anwesenheitsanzeige geht zwa was mich etwas irretiert ist die Log-datei
2018-07-06_18:11:11 Handy_LAN present
2018-07-06_18:14:52 Handy_LAN absent
2018-07-06_18:16:20 Handy_LAN present
2018-07-06_18:19:37 Handy_LAN absent
2018-07-06_18:21:45 Handy_LAN present
das Gerät Handy ist anwesend und wird als Present angezeigt
die Gplot sieht so aus
# Created by FHEM/98_SVG.pm, 2018-07-06 19:24:07
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set title '<TL>'
set ytics ("AB" 0, "AN" 1)
set y2tics ("AB" 0 , "AN" 1)
set grid
set ylabel "Status"
set y2label "Status"
set yrange [-0.1:1.1]
set y2range [-0.1:1.1]
#FileLog_Handy_LAN 3:Handy_LAN.*::%fid[2]=~"present"?1:0
plot "<IN>" using 1:2 axes x1y1 title 'Handy' ls l0 lw 1 with steps
vieleicht ein Schreib Fehler ein Parameter falsch ??
Hallo,
probiere mal
#FileLog_Handy_LAN 3:Handy_LAN.*:0:$fld[2]=~"present"?1:0
Also nur 1x : und fld statt fid