Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
munin temperature plugin. for Raspberry Pi and DS18B20
case $1 in
cat <<'EOM'
graph_title Temperature
graph_vlabel Temperature
temperature.label temperature
exit 0;;
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