2008-07-28 12:33:29 +00:00
|
|
|
############################
|
2007-03-27 14:50:04 +00:00
|
|
|
# Display the measured temp and the actuator.
|
2008-07-28 12:33:29 +00:00
|
|
|
# Corresponding FileLog definition:
|
|
|
|
# define fhtlog1 FileLog /var/log/fhem/fht1-%Y-%U.log fht1:.*(temp|actuator).*
|
|
|
|
|
2008-07-11 07:35:12 +00:00
|
|
|
set terminal png transparent size <SIZE> crop
|
2007-03-27 14:50:04 +00:00
|
|
|
set output '<OUT>.png'
|
|
|
|
set xdata time
|
|
|
|
set timefmt "%Y-%m-%d_%H:%M:%S"
|
|
|
|
set xlabel " "
|
|
|
|
set ytics nomirror
|
|
|
|
set y2tics
|
2008-05-09 13:58:10 +00:00
|
|
|
#set ytics
|
2007-10-03 16:35:37 +00:00
|
|
|
set title '<TL>'
|
2008-05-09 13:58:10 +00:00
|
|
|
set grid xtics y2tics
|
|
|
|
|
2008-07-24 07:39:15 +00:00
|
|
|
set y2label "Temperature in C"
|
2008-05-09 13:58:10 +00:00
|
|
|
set ylabel "Actuator (%)"
|
2007-03-27 14:50:04 +00:00
|
|
|
|
2008-07-11 07:35:12 +00:00
|
|
|
#FileLog 4:measured:0:
|
|
|
|
##FileLog 4:desired:0:
|
|
|
|
#FileLog 4:actuator.*[0-9]+%:0:int
|
2008-06-12 07:22:59 +00:00
|
|
|
|
|
|
|
# "< awk '/desired/ {print $1, $4+0}' <IN>"\
|
|
|
|
# using 1:2 axes x1y2 title 'Desired temperature' with steps,\
|
|
|
|
|
2007-03-27 14:50:04 +00:00
|
|
|
plot \
|
2008-05-09 13:58:10 +00:00
|
|
|
"< awk '/measured/{print $1, $4}' <IN>"\
|
|
|
|
using 1:2 axes x1y2 title 'Measured temperature' with lines lw 2,\
|
|
|
|
"< awk '/actuator/ {print $1, $4+0}' <IN>"\
|
|
|
|
using 1:2 axes x1y1 title 'Actuator (%)' with lines\
|