Plot von Klingel

Begonnen von stefan-dd, 11 August 2016, 21:11:21

Vorheriges Thema - Nächstes Thema

stefan-dd

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

fiedel

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
FeatureLevel: 6.1 auf Wyse N03D ; Deb. 11 ; Perl: v5.14.2 ; IO: HM-MOD-RPI-PCB + VCCU|CUL 868 V 1.66|LinkUSBi |TEK603
HM: SEC-SCO|SCI-3-FM|LC-SW4-PCB|ES-PMSW1-PL|RC-4-2|SEN-MDIR-O|SEC-WDS-2
CUL: HMS100TF|FS20 S4A-2 ; OWDevice: DS18S20|DS2401|DS2406|DS2423

stefan-dd

#2
Das war eine gute Idee.
Danke