]> mj.ucw.cz Git - arexx.git/blob - web/temp-quick.cgi
Home: Experimenting with new graph layout
[arexx.git] / web / temp-quick.cgi
1 #!/bin/sh
2 echo "Content-type: image/png"
3 echo
4 D=/var/log/arexxd
5 exec rrdtool graph - \
6         --start 'now-2h' \
7         --end 'now' \
8         --title "Temperature" \
9         -w 360 -h 200 \
10         -x MINUTE:10:MINUTE:30:MINUTE:30: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-ursarium.rrd:temp:AVERAGE 'LINE2:a#0000cc:Ursarium\n' \
16         DEF:d=$D/sensor-catarium.rrd:temp:AVERAGE 'LINE2:d#cc0000:Catarium\n' \
17         DEF:c=$D/sensor-balcony.rrd:temp:AVERAGE 'LINE2:c#cc00cc:Balcony\n' \
18         DEF:b=$D/sensor-outside.rrd:temp:AVERAGE 'LINE2:b#00cc00:Outside' \
19         'HRULE:0#0000ff'