SVG Plot aktuelle Werte als Zahl

Begonnen von Frank_Huber, 29 September 2016, 10:22:07

Vorheriges Thema - Nächstes Thema

Frank_Huber

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

franky08

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
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

Frank_Huber

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. ;)

gent

Hi, habe dasselbe Problem, finde aber die Commandref überhaupt nicht aussagekräftig.

Gibt's da auch einen wiki-Eintrag?

Viele Grüße vom Gent
fhem auf rPi3 mit USB boot und M2, cul866 (hm), homebridge, FlowerSens, Shelly, Harmony, WemosD1, Sonoff/Tasmota, grafana, mqtt/mosquitto