Dazu habe ich folgenden Link gefunden:
http://www.fhemwiki.de/wiki/DbLog#Anpassen_der_gplot-Konfigurationen (http://www.fhemwiki.de/wiki/DbLog#Anpassen_der_gplot-Konfigurationen)
Für mich nicht ganz klar herausgearbeitet:
Damit man nicht dauernd hin und herspringen muss, hab ich den Quellcode mal von der o.a. URL rauskopiert:
# Created by FHEM/98_SVG.pm, 2014-12-25 21:53:30
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 '<L1>'
set ytics nomirror
set y2tics
set grid y2tics
set ylabel "Actuator/Window (%)"
set y2label "Temperature in C"
set yrange 0:100
set y2range 5:25
#FileLog 4:.measured-temp\x3a:0:
#FileLog 4:.actuator\x3a:0:int
#FileLog 4:.desired-temp::
#FileLog 4:.window\x3a::
#DbLog <SPEC1>:.measured-temp:0:
#DbLog <SPEC1>:.actuator:0:int
#DbLog <SPEC1>:.desired-temp::
#DbLog <SPEC1>:.window::
plot "<IN>" using 1:2 axes x1y2 title 'Measured temperature' ls l0 lw 1 with lines,\
"<IN>" using 1:2 axes x1y1 title 'Actuator (%)' ls l1 lw 1 with lines,\
"<IN>" using 1:2 axes x1y2 title 'Desired Temperature' ls l2 lw 1 with steps,\
"<IN>" using 1:2 axes x1y1 title 'Window' ls l3 lw 1 with steps
Die Erklärungen für die einzelnen Befehle, weil mein fht.gplot ein wenig anders aussieht, obwohl ich noch nie dran war:
Gerade diese Zeilen sehen bei mir anders aus, weshalb ich gerne wissen würde, was es im Detail bedeutet:
plot "<IN>" using 1:2 axes x1y2 title 'Measured temperature' ls l0 lw 1 with lines,\
"<IN>" using 1:2 axes x1y1 title 'Actuator (%)' ls l1 lw 1 with lines,\
"<IN>" using 1:2 axes x1y2 title 'Desired Temperature' ls l2 lw 1 with steps,\
"<IN>" using 1:2 axes x1y1 title 'Window' ls l3 lw 1 with steps
Bei mir z.B. sieht es so aus:
plot \
"< awk '/measured/{print $1, $4}' <IN>"\
using 1:2 axes x1y2 title 'Measured temperature' with lines,\
"< awk '/actuator/ {print $1, $4+0}' <IN>"\
using 1:2 axes x1y1 title 'Actuator (%)' with lines\
nächste Frage wäre:
Beim nächsten Update... werden dann die Dateien von mir überschrieben? Oder kann FHEM erkennen, welche verändert wurden?
Danke für Hilfe