]> mj.ucw.cz Git - arexx.git/blob - web/rh-month.cgi
Home: Update sensor names in web interface
[arexx.git] / web / rh-month.cgi
1 #!/bin/sh
2 echo "Content-type: image/png"
3 echo
4 D=/var/log/arexxd
5 exec rrdtool graph - \
6         --start 'now-30d' \
7         --end 'now' \
8         --title "Relative Humidity: MIN and MAX" \
9         -w 720 -h 600 \
10         -x DAY:1:DAY:5:DAY:5:0:%d:%m \
11         -y 5:2 \
12         --right-axis 1:0 --right-axis-format "%3.0lf" \
13         --legend-position east \
14         --units-exponent 0 --lower-limit 0 --upper-limit 100 --rigid \
15         DEF:alo=$D/sensor-garage-rh.rrd:rh:MIN 'LINE1:alo#cc0000:Garage' \
16         DEF:ahi=$D/sensor-garage-rh.rrd:rh:MAX 'LINE1:ahi#cc0000'