]> mj.ucw.cz Git - arexx.git/blob - web/temp-12h.cgi
4ea9dc256a903efaae1f033df659ccb17abdce39
[arexx.git] / web / temp-12h.cgi
1 #!/bin/sh
2 echo "Content-type: image/png"
3 echo
4 D=/var/log/arexxd
5 exec rrdtool graph - \
6         --start 'now-12h' \
7         --end 'now' \
8         --title "Temperature" \
9         -w 720 -h 600 \
10         -x MINUTE:10:HOUR:1:HOUR:2: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:c=$D/sensor-catarium.rrd:temp:AVERAGE \
16         DEF:u=$D/sensor-ursarium.rrd:temp:AVERAGE \
17         DEF:b=$D/sensor-balcony.rrd:temp:AVERAGE \
18         DEF:o=$D/sensor-outside.rrd:temp:AVERAGE \
19         DEF:t=$D/sensor-aquarium.rrd:temp:AVERAGE \
20         'AREA:c#cc7777' \
21         'AREA:u#7777cc' \
22         'AREA:b#cc77cc' \
23         'AREA:o#77cc77' \
24         'LINE2:c#cc0000:Catarium\n' \
25         'LINE2:u#0000cc:Ursarium\n' \
26         'LINE2:b#cc00cc:Balcony\n' \
27         'LINE2:o#00cc00:Outside\n' \
28         'LINE2:t#00cccc:Aquarium' \
29         'HRULE:0#0000ff'