Hi Ekkehard,
in die CFG kommt (Beispiel von mir):
# Erzeugen der Dewpoint- Logeinträge für alle T/F- Sensoren:
define Func_Dew_All dewpoint dewpoint .* temperature humidity dewpoint
attr Func_Dew_All group Programm
attr Func_Dew_All room 5_System
define Func_Dew_State dewpoint dewpoint .* T H D
attr Func_Dew_State group Programm
attr Func_Dew_State room 5_System
So wird das Log definiert:
define Log_Home FileLog /pfad/fhem/Home-%Y.log Sens_TF_Aussen:T:.*|Sens_TF_Wohnz_UG:T:.*|Sens_TF_Studio_OG:T:.*|Sens_TF_Dachboden:T:.*|Sens_T_VL_Heiz:T:.*|Sens_T_FBH_Heiz:T:.*|Sens_T_RL_Heiz:T:.*|Sens_T_Solar_Heiz:T:.*|Sens_T_Speicher:T:.*|Test:T:.*|Zirk
attr Log_Home logtype overview,heizung,boiler,klima_t,klima_f_d,text
attr Log_Home room 4_Logdaten
Das ist die Def. für den Plot- Weblink:
define 04_Klima_F_D weblink fileplot Log_Home:klima_f_d:CURRENT
attr 04_Klima_F_D fp_6_Plots_Klima 250,590,0,
attr 04_Klima_F_D label "Min $data{min1}, Max $data{max1}, Last $data{currval1}"
attr 04_Klima_F_D room 2_Heizung
Das GPLOT- File sieht so aus:
# Filename: klima_f_d.gplot
#
# Display the calculated dewpoint and the humidity.
set terminal png transparent small size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
# set ytics
set y2tics
set ytics nomirror
# set y2tics nomirror
set grid xtics y2tics
# set grid xtics ytics
set yrange [10:80]
# set y2range [-15:30]
set title 'Wohnumgebung Feuchte und Taupunkt'
set ylabel "Luftfeuchtigkeit (%)"
set y2label "Taupunkt in °C"
#FileLog 6:Sens_TF_Wohnz_UG:0:
#FileLog 8:Sens_TF_Wohnz_UG:0:
#FileLog 6:Sens_TF_Studio_OG:0:
#FileLog 6:Sens_TF_Dachboden:0:
#FileLog 10:Sens_TF_Dachboden:0:
#FileLog 6:Sens_TF_Aussen:0:
#FileLog 8:Sens_TF_Aussen:0:
plot \
"< awk '/Sens_TF_Wohnz_UG/ {print $1, $6}' <IN>"\
using 1:2 axes x1y1 title 'WZ_F' with lines lw 1\
"< awk '/Sens_TF_Wohnz_UG/ {print $1, $8}' <IN>"\
using 1:2 axes x1y2 title 'WZ_D' with lines lw 2\
"< awk '/Sens_TF_Studio_OG/ {print $1, $6}' <IN>"\
using 1:2 axes x1y1 title 'Stu_F' with lines lw 1\
"< awk '/Sens_TF_Dachboden/ {print $1, $6}' <IN>"\
using 1:2 axes x1y1 title 'Bd_F' with lines lw 1\
"< awk '/Sens_TF_Dachboden/ {print $1, $10}' <IN>"\
using 1:2 axes x1y2 title 'Bd_D' with lines lw 2\
"< awk '/Sens_TF_Aussen/ {print $1, $6}' <IN>"\
using 1:2 axes x1y1 title 'Aussen_F' with lines lw 1\
"< awk '/Sens_TF_Aussen/ {print $1, $8}' <IN>"\
using 1:2 axes x1y2 title 'Aussen_D' with lines lw 2\
Uff, ganz schön viel Kram... ;o)
Viel Erfolg!