Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 21st, 2013  |  syntax: None  |  size: 0.64 KB  |  views: 112  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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