rh-12h.cgi 428 B

123456789101112131415
  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 "Relative Humidity" \
  9. -w 720 -h 600 \
  10. -x MINUTE:10:HOUR:1:HOUR:2:0:%H:%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:a=$D/sensor-catarium-rh.rrd:rh:AVERAGE 'LINE1:a#cc0000:Catarium'