Created
August 8, 2013 18:38
-
-
Save nilsmagnus/6187422 to your computer and use it in GitHub Desktop.
reading temp from temp sensor on rapsi pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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