FHEM Forum

FHEM => Frontends => SVG / Plots / logProxy => Thema gestartet von: stgeran am 20 Januar 2017, 20:24:33

Titel: Plotüberschrift
Beitrag von: stgeran am 20 Januar 2017, 20:24:33
Bei dieser Plotdefinition
# Created by FHEM/98_SVG.pm, 2017-01-20 20:13:23
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 "Feuchte"
set y2label "Temperatur"
set y2range [-15:30]

#FileLog_Bad_Temp 4:Bad_Temp.temperature\x3a:C°:
#FileLog_Bad_Temp 4:Bad_Temp.humidity\x3a:%:
#FileLog_Bad_Temp 8:Bad_Temp.*:C°:

plot "<IN>" using 1:2 axes x1y2 title 'Temperatur' ls l0 lw 1 with lines,\
     "<IN>" using 1:2 axes x1y1 title 'Feuchte' ls l1 lw 1 with lines,\
     "<IN>" using 1:2 axes x1y2 title 'Taupunkt' ls l2 lw 1 with lines

bekomme ich als Überschrift

<L1>

Bei einer anderen
# Created by FHEM/98_SVG.pm, 2016-12-11 19:04: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 ytics y2tics
set ylabel "Ventil"
set y2label "Temperatur"
set yrange [0:100]
set y2range [5:30]
set y3range [0:-100]

#FileLog_Hzg_Buero 4:Hzg_Buero.temperature\x3a:C°:
#FileLog_Hzg_Buero 4:WT_Buero.desiredTemperature\x3a:C°:
#FileLog_Hzg_Buero 4:Hzg_Buero.valveposition\x3a:%:
#FileLog_Hzg_Buero 4:Hzg_Buero.RSSI\x3a:dB:

plot "<IN>" using 1:2 axes x1y2 title 'Ist Temp' ls l0 lw 1 with lines,\
     "<IN>" using 1:2 axes x1y2 title 'Soll Temp' ls l1 lw 1 with lines,\
     "<IN>" using 1:2 axes x1y1 title 'Ventil' ls l2 lw 1 with lines,\
     "<IN>" using 1:2 axes x1y3 title 'RSSI' ls l4 lw 1 with lines

folgende Überschrift
Temp Buero Soll 22.0, Min 19.8, Max 23.1, aktuell 22.3, Ventil 9%

Ich kann keinen Unterschied feststellen, warum ich einmal die "richtige" Überschrift habe und im anderen Fall "NUR" das <L1>
Titel: Antw:Plotüberschrift
Beitrag von: stromer-12 am 20 Januar 2017, 22:15:18
Schau mal in deine SVG Definition zum Plot, da hast du sicherlich das Attribut label vergeben und einmal nicht.
Titel: Antw:Plotüberschrift
Beitrag von: stgeran am 21 Januar 2017, 10:49:02
Ich habe in beiden Definitionen
set xlabel " "
set title '<L1>'

meinst Du das?
Titel: Antw:Plotüberschrift
Beitrag von: stgeran am 17 Februar 2017, 19:56:33
Ich komme nicht weiter, hat jemand noch eine Idee?
Titel: Antw:Plotüberschrift
Beitrag von: stromer-12 am 17 Februar 2017, 20:59:42
Schau in die SVG Definitionen, nicht in die Gplot Datei.
Titel: Antw:Plotüberschrift
Beitrag von: stgeran am 18 Februar 2017, 19:34:47
Das sind doch alles g.plot Dateien. Wo finde ich "im Wald" die SVG Definitionen?
Titel: Antw:Plotüberschrift
Beitrag von: stgeran am 18 Februar 2017, 19:50:49
Ah, ich bin weiter. NUR wie definiere ich den label? In der command ref habe ich nichts gefunden.