Skip to content

Instantly share code, notes, and snippets.

@nilsmagnus
Created August 8, 2013 18:38
Show Gist options
  • Save nilsmagnus/6187422 to your computer and use it in GitHub Desktop.
Save nilsmagnus/6187422 to your computer and use it in GitHub Desktop.
reading temp from temp sensor on rapsi pi
#!/bin/bash
while true; do
TIME=`date +%Y:%m:%d:%H:%S`
TEMP=`cat /sys/bus/w1/devices/28-000004b57f7c/w1_slave | grep t= | cut -c30-34 `
echo $TIME $TEMP
sleep 30
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment