UliM
unread,Jan 22, 2012, 6:56:46 AM1/22/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to FHEM users
Hi,
hier die Lösung auf FB7390 mit Geräten ez_FHT und ez_Aussensensor
(S300TH).
Gruß, Uli
#Kombiniertes log für beide Geräte:
define TemperaturLog FileLog /var/InternerSpeicher/fhem/log/
TemperaturLog-%Y-%m.log (ez_FHT:(measured-temp|actuator).*|
ez_Aussensensor:.*T:.*)
attr TemperaturLog logtype fht:Temp/Act,text
#Weblink zum Aufruf des Plots:
define weblink_TemperaturLog weblink fileplot TemperaturLog:fht-
own:CURRENT
attr weblink_TemperaturLog room Plots
include /var/InternerSpeicher/fhem/lastinclude.cfg
#Plot-Definition in neuer Datei fht-own.gplot
############################
# Display the measured temp and the actuator.
# Corresponding FileLog definition:
# define <filelogname> FileLog /var/InternerSpeicher/fhem/log/
TemperaturLog-%Y-%m.log (ez_FHT:(measured-temp|actuator).*|
ez_Aussensensor:.*T:.*)
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 'Temperaturen'
set grid xtics y2tics
set y2label "Temperature in C"
set ylabel "Actuator (%)"
#FileLog 4:measured:0:
#FileLog 4:actuator.*[0-9]+%:0:int
#FileLog 4:T\x3a:0:
plot \
"< awk '/measured/{print $1, $4}' <IN>"\
using 1:2 axes x1y2 title 'Measured Indoor' with lines,\
"< awk '/actuator/ {print $1, $4+0}' <IN>"\
using 1:2 axes x1y1 title 'Actuator (%)' with lines\
"< awk '/T/{print $1, $4}' <IN>"\
using 1:2 axes x1y2 title 'Measured Outdoor' with lines,\