Created
November 2, 2014 07:10
-
-
Save nobro/dbe7e8f36f5db9ec842d to your computer and use it in GitHub Desktop.
Read temperature and humidity using DHT22 from seeeduino v3 on USB
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
INPUT=$(grep -m 1 Humidity /dev/ttyUSB0) | |
NOW=$(date) | |
if [ "$INPUT" != "Binary file /dev/ttyUSB0 matches" ]; then | |
echo "$NOW" "$INPUT" >> /home/nob/temp.txt | |
else | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment