HM-CC-TC Plot - Measuredm Temp wird nicht angezeigt

Begonnen von AbeamStart, 18 September 2013, 11:03:22

Vorheriges Thema - Nächstes Thema

AbeamStart

Hallo Zusammen,
habe aus dem Wiki für mein HM-CC-TC folgenden Plot:
http://www.fhemwiki.de/wiki/HM-CC-TC_Funk-Wandthermostat#Alles-drin-Plot

############################
# Display the measured temp and the actuator.
# Corresponding FileLog definition:
# define <filelogname> FileLog /var/log/fhem/HM_CC_TC-%Y.log <HM_CC_TC-name>
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 ytics nomirror
set y2tics
#set ytics
set title '<L1>'
set grid xtics y2tics
set y2label "Temperature in C"
set ylabel "Actuator (%)"
#FileLog 4:temperature:0:
#FileLog 4:desired:0:
#FileLog 4:humidity:0:
#FileLog 4:actuator:0:int
plot \
 "< awk '/temperature/{print $1, $4}' <IN>"\
   using 1:2 axes x1y2 title 'Measured temperature' with lines lw 2,\
 "< awk '/desired/{print $1, $4}' <IN>"\
   using 1:2 axes x1y2 title 'Desired temperature' with steps,\
 "< awk '/humidity/ {print $1, $4+0}' <IN>"\
   using 1:2 axes x1y1 title 'Humidity (%)' with lines,\
 "< awk '/actuator/ {print $1, $4+0}' <IN>"\
   using 1:2 axes x1y1 title 'Actuator (%)' with lines\

Meine define sieht so aus:

define FileLog_BAD_Heizung FileLog ./log/BAD_Heizung-%Y.log BAD_Heizung
attr FileLog_BAD_Heizung logtype hm:Temp/Act,text
attr FileLog_BAD_Heizung room BAD
define wl_BAD_Heizung weblink fileplot FileLog_BAD_Heizung:hm:CURRENT
attr wl_BAD_Heizung label "BAD Min $data{min1}, Max $data{max1}, Last $data{currval1}"
attr wl_BAD_Heizung room BAD


Log:

2013-09-16_22:48:04 BAD_Heizung measured-temp: 22.2
2013-09-16_22:48:04 BAD_Heizung humidity: 67
2013-09-16_22:48:24 BAD_Heizung actuator: 0 %
2013-09-16_22:50:14 BAD_Heizung desired-temp: 12.0
2013-09-16_22:50:14 BAD_Heizung battery: ok
2013-09-16_22:50:19 BAD_Heizung desired-temp: 16.0
2013-09-16_22:50:19 BAD_Heizung battery: ok
2013-09-16_22:50:36 BAD_Heizung T: 22.2 H: 68
2013-09-16_22:50:36 BAD_Heizung measured-temp: 22.2
2013-09-16_22:50:36 BAD_Heizung humidity: 68
2013-09-16_22:50:56 BAD_Heizung actuator: 0 %
2013-09-16_22:52:53 BAD_Heizung T: 22.2 H: 68
2013-09-16_22:52:53 BAD_Heizung measured-temp: 22.2
2013-09-16_22:52:53 BAD_Heizung humidity: 68
2013-09-16_22:53:13 BAD_Heizung actuator: 0 %
2013-09-16_22:54:56 BAD_Heizung T: 22.2 H: 68
2013-09-16_22:54:56 BAD_Heizung measured-temp: 22.2
2013-09-16_22:54:56 BAD_Heizung humidity: 68
2013-09-16_22:55:16 BAD_Heizung actuator: 0 %
2013-09-16_22:57:48 BAD_Heizung T: 22.2 H: 68
2013-09-16_22:57:48 BAD_Heizung measured-temp: 22.2
2013-09-16_22:57:48 BAD_Heizung humidity: 68
2013-09-16_22:58:08 BAD_Heizung actuator: 0 %
2013-09-16_22:59:48 BAD_Heizung Activity: unknown
2013-09-16_23:00:26 BAD_Heizung T: 22.2 H: 68
2013-09-16_23:00:26 BAD_Heizung measured-temp: 22.2


Im Log sind alle Daten drin, jedoch wird die Measured Temp nicht angezeigt! Der Rest schon!
Wer kann helfen?
FHEM auf Debian (VM)

AbeamStart

Ich hab es gelöst,
die Plot Definition sollte so aussehen! Bitte Wiki anpassen:

############################
# Display the measured temp and the actuator.
# Corresponding FileLog definition:
# define <filelogname> FileLog /var/log/fhem/HM_CC_TC-%Y.log <HM_CC_TC-name>
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 ytics nomirror
set y2tics
#set ytics
set title '<L1>'
set grid xtics y2tics
set y2label "Temperatur in °C"
set ylabel "Ventil (%)"
#FileLog 4:measured-temp:0:
#FileLog 4:desired-temp:0:
#FileLog 4:humidity:0:
#FileLog 4:actuator:0:int
plot \
 "< awk '/temperature/{print $1, $4}' <IN>"\
   using 1:2 axes x1y2 title 'Temperatur' with lines lw 2,\
 "< awk '/desired/{print $1, $4}' <IN>"\
   using 1:2 axes x1y2 title 'Wunschtemperatur' with steps,\
 "< awk '/humidity/ {print $1, $4+0}' <IN>"\
   using 1:2 axes x1y1 title 'Feuchte (%)' with lines,\
 "< awk '/actuator/ {print $1, $4+0}' <IN>"\
   using 1:2 axes x1y1 title 'Ventil (%)' with lines\
FHEM auf Debian (VM)