From dc50e995cea818a8ba1e20bb6dbf015b3b051c6c Mon Sep 17 00:00:00 2001 From: mrp666 Date: Mon, 21 Oct 2013 09:27:01 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4083 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/gplot/hm-rt.gplot | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 fhem/www/gplot/hm-rt.gplot diff --git a/fhem/www/gplot/hm-rt.gplot b/fhem/www/gplot/hm-rt.gplot new file mode 100644 index 000000000..bf2c71ac0 --- /dev/null +++ b/fhem/www/gplot/hm-rt.gplot @@ -0,0 +1,30 @@ +############################ +# Display the measured & desired temp and also the valve position. +# Corresponding FileLog definition: +# define FileLog /var/log/fhem/hm-rt-%Y-%m.log + +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 '' +set grid xtics y2tics + +set y2label "Temperature in C" +set ylabel "Valve Position (%)" + +#FileLog 4:measured-temp\x3a:0: +#FileLog 4:desired-temp\x3a:0: +#FileLog 4:ValvePosition\x3a:0: + +plot \ + "< awk '/measured/{print $1, $4}' "\ + using 1:2 axes x1y2 title 'Measured temperature' with lines,\ + "< awk '/desired/{print $1, $4}' "\ + using 1:2 axes x1y2 title 'Desired temperature' with lines,\ + "< awk '/actuator/ {print $1, $4+0}' "\ + using 1:2 axes x1y1 title 'Actuator (%)' with lines\