]> mj.ucw.cz Git - arexx.git/blob - web/temp-48h.cgi
A web interface
[arexx.git] / web / temp-48h.cgi
1 #!/bin/sh
2 echo "Content-type: image/png"
3 echo
4 D=/var/log/arexxd
5 exec rrdtool graph - \
6         --start 'now-48h' \
7         --end 'now' \
8         --title "Temperature: Last 2 days" \
9         -w 720 -h 600 \
10         -x HOUR:1:HOUR:8:HOUR:8:0:%H:%M \
11         -y 5:1 \
12         --right-axis 1:0 --right-axis-format "%3.0lf" \
13         --units-exponent 0 --lower-limit -20 --upper-limit 40 --rigid \
14         --legend-position east \
15         DEF:a=$D/sensor-10415.rrd:temp:AVERAGE 'LINE1:a#0000cc:Ursarium\n' \
16         DEF:b=$D/sensor-12133.rrd:temp:AVERAGE 'LINE1:b#00cc00:Balcony\n' \
17         DEF:c=$D/sensor-19246.rrd:temp:AVERAGE 'LINE1:c#cc0000:Catarium'