rh-month.cgi 498 B

12345678910111213141516
  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-catarium-rh.rrd:rh:MIN 'LINE1:alo#cc0000:Catarium' \
  16. DEF:ahi=$D/sensor-catarium-rh.rrd:rh:MAX 'LINE1:ahi#cc0000'