2010-03-14 11:33:54 +00:00
|
|
|
############################
|
|
|
|
# Display the Water temperature and burner runtime values.
|
|
|
|
# Corresponding FileLog definition:
|
|
|
|
# define KM271 FileLog /var/log/fhem/km271-%Y.log KM271
|
|
|
|
|
|
|
|
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 title '<L1>'
|
|
|
|
set grid
|
|
|
|
|
|
|
|
set y2label "Temperature in C"
|
|
|
|
set format y "%0.1f"
|
|
|
|
set ylabel "Minutes"
|
|
|
|
set yrange [0:]
|
|
|
|
|
|
|
|
#FileLog 4:Warmwasseristtemperatur:0:
|
|
|
|
#FileLog 4:Brennerlaufzeit:0:delta-h
|
|
|
|
|
|
|
|
plot "<IN>" using 1:4 axes x1y2 title 'WW-Temp' with lines lw 2,\
|
|
|
|
"<grep Brennerlaufzeit <IN> | perl -ane '\
|
|
|
|
@a = split(\"[_:]\", $F[0]);\
|
|
|
|
if(defined($lh) && $lh ne $a[1])\
|
|
|
|
{ printf(\"${ld}_$lh:30:00 %f\n\", $hv); $hv = 0; }\
|
|
|
|
if($lv) { $hv += ($F[3]-$lv); }\
|
|
|
|
$lh = $a[1]; $ld = $a[0]; $lv = $F[3];\
|
|
|
|
END { printf(\"${ld}_$lh:30:00 %f\n\", $hv) }'"\
|
2010-03-23 09:03:04 +00:00
|
|
|
using 1:2 axes x1y1 title 'Runtime/h (Min)' with histeps
|