Guest User

Untitled

a guest
Apr 26th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. case $1 in
  4. config)
  5. cat <<'EOM'
  6. graph_title Temperature
  7. graph_vlabel Temperature
  8. temperature.label temperature
  9. EOM
  10. exit 0;;
  11. esac
  12.  
  13. printf "temperature.value "
  14. EMP=`cat /sys/bus/w1/devices/*/w1_slave | grep t= | sed s/.*t=//`
  15. echo "scale=2; $TEMP / 1000" | bc
Add Comment
Please, Sign In to add comment