Created
October 2, 2016 00:55
-
-
Save arobb/59eed2a1746711c48d85d08ac66705e7 to your computer and use it in GitHub Desktop.
Temperature from Raspberry Pi
This file contains hidden or 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
#!/usr/bin/env bash | |
vcgencmd measure_temp | sed -n 's/temp=\([0-9.]*\).*$/\1/p' | bc <<< "9 / 5 * `cat` + 32" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment