Last active
November 13, 2019 09:58
-
-
Save ChieftainY2k/44c64c7b5af62776de2568193cb1dfb1 to your computer and use it in GitHub Desktop.
RaspberryPi: Bash one-liner to read and log raw data from DS18B20 sensors into a file (every 10 seconts)
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
watch -n 10 "TIME=\$(date '+%Y-%m-%d %H:%M:%S'); READING=\$(cat /sys/bus/w1/devices/28*/w1_slave); echo \"\$TIME\\n\$READING\" | tee -a /var/tmp/thermo.log" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follow the logs with
tail -f /var/tmp/thermo.log