FHEM Forum

FHEM => Frontends => SVG / Plots / logProxy => Thema gestartet von: stefan-dd am 11 August 2016, 21:11:21

Titel: Plot von Klingel
Beitrag von: stefan-dd am 11 August 2016, 21:11:21
Ich überwache meine Eingänge Tor auf/zu Pforte auf/zu und die Klingel. Bei Klingelbetätigung habe ich nur einen einzelnen Eintrag in der Log Datei "Klingel Tor betätigt. Diesen Impuls möchte ich grafisch mit darstellen. Die Auswahl steht mir zur Verfügung, weis aber die Formatierung nicht. Am besten wäre ein einfacher breiter Strich, wenn das Signal anliegt.

#Homestatus_log 3:tor.*:0:$fld[2]=~"auf"?1:0
#Homestatus_log 3:pforte.*:0:$fld[2]=~"auf"?1:0
#Homestatus_log 3:Klingel.*:0:

Was muss ich angeben?
Danke
Titel: Antw:Plot von Klingel
Beitrag von: fiedel am 11 August 2016, 22:49:06
Sowas mach ich mit Dots:

# Created by FHEM/98_SVG.pm, 2016-08-11 22:30:22
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 'Alarmsensoren'
set ytics ("RM_H" 0.8, "RM_G" 0.7, "EM_T" 0.6, "BM_R" 0.2, "BM_G" 0.1, "Klingel" 0.0)
set y2tics ("RM_H" 0.8, "RM_G" 0.7, "EM_T" 0.6, "BM_R" 0.2, "BM_G" 0.1, "Klingel" 0.0)
set grid
set ylabel ""
set y2label ""
set yrange [-0.1:0.9]
set y2range [-0.1:0.9]

#Log_Alarm "0.8":Sens_RM_Haus.al_stat.*lm:0.8:
#Log_Alarm "0.7":Sens_RM_Garage.on:0.7:
#Log_Alarm "0.6":FS20_a34a92.on-old-for-timer:0.6:
#Log_Alarm "0.2":Sens_BM_2.motion:0.2:
#Log_Alarm "0.1":Sens_BM_1.motion:0.1:
#Log_Alarm "0.0":Klingel.*:0.0:

plot "<IN>" using 1:2 axes x1y2 notitle ls l0fill lw 1 with points,\
     "<IN>" using 1:2 axes x1y2 notitle ls l0fill lw 1 with points,\
     "<IN>" using 1:2 axes x1y2 notitle ls l2fill lw 1 with points,\
     "<IN>" using 1:2 axes x1y2 notitle ls l3fill lw 1 with points,\
     "<IN>" using 1:2 axes x1y2 notitle ls l3fill lw 1 with points,\
     "<IN>" using 1:2 axes x1y2 notitle ls l5fill lw 1 with points
Titel: Antw:Plot von Klingel
Beitrag von: stefan-dd am 12 August 2016, 18:54:06
Das war eine gute Idee.
Danke