SHARE
TWEET

Untitled

a guest Mar 21st, 2013 115 Never
  1. #!/bin/sh
  2. if [ "$1" = "config" ]; then
  3. echo 'graph_order sensor0 sensor3 sensor1 ......'
  4. echo 'graph_title Keskkyte'
  5. echo 'graph_vlabel Celsius'
  6. echo 'graph_category Temperature'
  7. echo 'graph_info Central Heating'
  8. echo 'sensor0.label from heater'
  9. echo 'sensor0.colour FF0000'
  10. echo 'sensor1.label to radiators'
  11. echo 'sensor1.colour F26300'
  12. echo 'sensor1.max 60'
  13. ....
  14. ....
  15. echo 'pellet.colour CC9900'
  16. echo 'boiler.label boiler'
  17. exit 0
  18. fi
  19. export TMPDIR=/tmp
  20. echo sensor0.value `/usr/bin/digitemp_DS9097 -c /root/.digitemprc -t 0 -q -o %.2C`
  21. echo sensor1.value `/usr/bin/digitemp_DS9097 -c /root/.digitemprc -t 1 -q -o %.2C`
  22. ....
  23. exit 0
RAW Paste Data
Top