FHEM Forum

FHEM => fhem-users => Thema gestartet von: Guest am 21 Januar 2012, 09:42:21

Titel: S300TH und FHT80b in gemeinsamem log
Beitrag von: Guest am 21 Januar 2012, 09:42:21
Originally posted by: <email address deleted>

Moin!
Hat bestimmt schon jemand gemacht, hab's über die Suche hier aber
nicht gefunden:
Kann hier (oder gleich im Wiki) bitte jemand die log- und plot-
definition für ein gemeinsames log einer FHT80b und eines S300TH
posten?
Dank, Gruß und schönes Wochenende,
Uli

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Titel: Re: S300TH und FHT80b in gemeinsamem log
Beitrag von: Guest am 22 Januar 2012, 11:30:02
Originally posted by: <email address deleted>

Hi,
echt niemand?
=8-)

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
Titel: Re: S300TH und FHT80b in gemeinsamem log
Beitrag von: Guest am 22 Januar 2012, 12:56:46
Originally posted by: <email address deleted>

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 FileLog /var/InternerSpeicher/fhem/log/
TemperaturLog-%Y-%m.log (ez_FHT:(measured-temp|actuator).*|
ez_Aussensensor:.*T:.*)

set terminal png transparent size crop
set output '.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}' "\
     using 1:2 axes x1y2 title 'Measured Indoor' with lines,\
  "< awk '/actuator/ {print $1, $4+0}' "\
     using 1:2 axes x1y1 title 'Actuator (%)' with lines\
  "< awk '/T/{print $1, $4}' "\
     using 1:2 axes x1y2 title 'Measured Outdoor' with lines,\



--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com