Create a gist now

Instantly share code, notes, and snippets.

munin temperature plugin. for Raspberry Pi and DS18B20
#!/bin/sh
case $1 in
config)
cat <<'EOM'
graph_title Temperature
graph_vlabel Temperature
temperature.label temperature
EOM
exit 0;;
esac
printf "temperature.value "
TEMP=`cat /sys/bus/w1/devices/*/w1_slave | grep t= | awk '{print $10}' | sed s/t=//`
echo "scale=2; $TEMP / 1000" | bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment