Hallo,
ich stolpere immer wieder darüber und weiß keine Lösung.
Wenn ich im Logfile die Zeile
"2021-01-12_10:28:26 di_BMode LogAnzHeizanforderung: 5"
stehen habe, dann müsste ich doch im Plot auch eine 5 bekommen. Tatsächlich wird eine 5.1 mit "Display Plot Value" angezeigt (siehe Grafik).
Bei 10:59 sollen es 6 sein.. usw.
Das ist in der .gplot Datei:
# Created by FHEM/98_SVG.pm, 2021-01-12 12:03:39
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
set y2tics
set grid
set ylabel "Temperatur"
set y2label "Stellgrad"
set yrange [10:65]
set y2range [0:10]
#Log_HPSU 4:HPSU.pyHPSU.t_dhw\x3a::
#Log_HPSU 4:HPSU.pyHPSU.t_dhw_set\x3a::
#Log_HPSU 4:HPSU.pyHPSU.t_hs\x3a::
#Log_HPSU 4:HPSU.pyHPSU.t_r1\x3a::
#Log_HPSU 4:HPSU.pyHPSU.t_hc_set\x3a::
#Log_HPSU 4:HPSU.pyHPSU.t_hs_set\x3a::
#Log_HPSU 4:myHPSU.HPSU.T_direkter_Heizkreis\x3a::
#Log_HPSU 4:di_BMode.LogAnzHeizanforderung\x3a:0:int
plot "<IN>" using 1:2 axes x1y1 title 'Warmwasser' ls l3 lw 1 with lines,\
"<IN>" using 1:2 axes x1y1 title 'Warmwasser soll' ls l4 lw 1 with points,\
"<IN>" using 1:2 axes x1y1 title 'Vorlauf Heizkreis' ls l0 lw 1 with steps,\
"<IN>" using 1:2 axes x1y1 title 'Rücklauf Heizkreis' ls l2 lw 1 with steps,\
"<IN>" using 1:2 axes x1y1 title 'Vorlauf Heizkreis soll' ls l6 lw 1 with steps,\
"<IN>" using 1:2 axes x1y1 title 'Vorlauf Wärmeerz. soll' ls l1 lw 1 with points,\
"<IN>" using 1:2 axes x1y1 title 'Vorlauf HK direkt' ls l1 lw 1 with lines,\
"<IN>" using 1:2 axes x1y2 title 'Anzahl HAnforderung' ls l7 lw 1.5 with fsteps
Mit "int($fld[3])" in Function hatte ich es auch schon probiert, falls der Vorschlag kommt. Mach aber alles keinen Unterschied.
Was mache ich falsch?
Gruß
Axel
ZitatWas mache ich falsch?
Annehmen, dass "Display Plot Values" eine Ahnung von den urspruenglichen Werten hat.
Das ist nicht der Fall, es wird anhand der SVG-Linie, und der angegebenen Skalierung zurueckgerechnet.