Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- case $1 in
- config)
- cat <<'EOM'
- graph_title Temperature
- graph_vlabel Temperature
- temperature.label temperature
- EOM
- exit 0;;
- esac
- printf "temperature.value "
- EMP=`cat /sys/bus/w1/devices/*/w1_slave | grep t= | sed s/.*t=//`
- echo "scale=2; $TEMP / 1000" | bc
Add Comment
Please, Sign In to add comment