2008-07-28 12:33:29 +00:00
|
|
|
############################
|
2008-08-01 07:44:06 +00:00
|
|
|
# Display the daily avarage temperature and rainfall from a KS300.
|
2008-07-28 12:33:29 +00:00
|
|
|
# Corresponding FileLog definition:
|
2008-08-01 07:44:06 +00:00
|
|
|
# define avglog FileLog /var/log/fhem/ks300-%Y.log ks300:.*avg.*
|
2008-07-28 12:33:29 +00:00
|
|
|
|
2022-03-07 08:45:37 +00:00
|
|
|
set readonly
|
2008-07-11 07:35:12 +00:00
|
|
|
set terminal png transparent size <SIZE> crop
|
2007-08-05 11:17:46 +00:00
|
|
|
set output '<OUT>.png'
|
|
|
|
set xdata time
|
|
|
|
set timefmt "%Y-%m-%d_%H:%M:%S"
|
|
|
|
set xlabel " "
|
|
|
|
set ytics nomirror
|
|
|
|
set y2tics
|
2007-10-03 16:35:37 +00:00
|
|
|
set title '<TL>'
|
2007-08-05 11:17:46 +00:00
|
|
|
set grid
|
|
|
|
|
2009-01-02 09:32:08 +00:00
|
|
|
set y2label "Temperature in C"
|
|
|
|
set ylabel "Rain (l/m2)"
|
2007-08-05 11:17:46 +00:00
|
|
|
|
2008-07-11 07:35:12 +00:00
|
|
|
#FileLog 5:avg_day:0:
|
|
|
|
#FileLog 11:avg_day:0:
|
2008-06-12 07:22:59 +00:00
|
|
|
|
2009-01-02 09:32:08 +00:00
|
|
|
plot "<grep avg_day <IN>" using 1:5 axes x1y2 title 'Temperature' with lines,\
|
|
|
|
"<grep avg_day <IN>" using 1:11 axes x1y1 title 'Rain' with histeps
|