rg 853 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. # An example graphing script for arexxd
  3. D=/var/log/arexxd
  4. rrdtool graph graph-12h-temp.png \
  5. --start 'now-12h' \
  6. --end 'now' \
  7. --title "Temperature" \
  8. -w 720 -h 600 \
  9. -x MINUTE:10:HOUR:1:HOUR:2:0:%H:%M \
  10. -y 5:2 \
  11. --units-exponent 0 --lower-limit -20 --upper-limit 40 --rigid \
  12. --legend-position east \
  13. DEF:a=$D/sensor-10415.rrd:temp:AVERAGE 'LINE1:a#0000cc:Ursarium\n' \
  14. DEF:b=$D/sensor-12133.rrd:temp:AVERAGE 'LINE1:b#00cc00:Balcony\n' \
  15. DEF:c=$D/sensor-19246.rrd:temp:AVERAGE 'LINE1:c#cc0000:Catarium'
  16. rrdtool graph graph-12h-humidity.png \
  17. --start 'now-12h' \
  18. --end 'now' \
  19. --title "Relative Humidity" \
  20. -w 720 -h 600 \
  21. -x MINUTE:10:HOUR:1:HOUR:2:0:%H:%M \
  22. -y 5:2 \
  23. --legend-position east \
  24. --units-exponent 0 --lower-limit 0 --upper-limit 100 --rigid \
  25. DEF:a=$D/sensor-19247.rrd:rh:AVERAGE 'LINE1:a#cc0000:Catarium'