Hallo,
ich kämpfe mal wieder...
SVG Plot auf dblog. Temperatur / Feuchte und Taupunkt.
Nun würde ich gerne die aktuellen Werte als Zahl mit darstellen.
Am liebsten in der Legende. im Titel wäre es aber auch OK. :-)
jemand nen Tip für mich?
Plot file:
# Created by FHEM/98_SVG.pm, 2016-09-29 10:16:47
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 'Klima 1'
set ytics
set y2tics
set grid
set ylabel "Luftfeuchte"
set y2label "Temperature"
set yrange [00:100]
set y2range [0:35]
#logdb KLIMA_1_Temp:temperature
#logdb KLIMA_1_rH:rH
#logdb KLIMA_1_rH:Taupunkt
plot "<IN>" using 1:2 axes x1y2 title 'Temperature' ls l2 lw 1 with lines,\
"<IN>" using 1:2 axes x1y1 title 'Luftfeuchte' ls l0 lw 1 with lines,\
"<IN>" using 1:2 axes x1y2 title 'Taupunkt' ls l1 lw 1 with lines
cfg:
define Plot_KLIMA_1 SVG logdb:Plot_Klima_1:HISTORY
attr Plot_KLIMA_1 captionLeft 1
danke schonmal
Grüße
Frank
Sieh dir in der commandref mal das Attribut label an, damit geht das. Beispiel von mir:
"Temp- min: $data{min1} °C, max: $data{max1} °C, last: $data{currval1} °C, Feuchte- min: $data{min2} %, max: $data{max2} %, last: $data{currval2} %"
VG
Frank
Zitat von: franky08 am 29 September 2016, 15:50:23
Sieh dir in der commandref mal das Attribut label an, damit geht das. Beispiel von mir:
"Temp- min: $data{min1} °C, max: $data{max1} °C, last: $data{currval1} °C, Feuchte- min: $data{min2} %, max: $data{max2} %, last: $data{currval2} %"
in der Commandref war ich, hab das aber nur für die erste Linie verstanden. steht ja auch im Text für die erste Linie.
An deinem Beispiel sehe ich jetzt dass wohl mit ...2 und ...3 die weiteren Linien zu machen sind.
Werd ichgleich testen, danke für den Schubbs. ;)
Hi, habe dasselbe Problem, finde aber die Commandref überhaupt nicht aussagekräftig.
Gibt's da auch einen wiki-Eintrag?
Viele Grüße vom Gent