Advertisement
Guest User

Untitled

a guest
Mar 21st, 2013
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement