Created
December 29, 2018 08:10
-
-
Save AnotherDroog/3c407ac5d6df7f4c65a2edf2674e653b to your computer and use it in GitHub Desktop.
Raspberry Pi temperature on alpine
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/sh | |
cpu=$(cat /sys/class/thermal/thermal_zone0/temp) | |
echo "$((cpu/1000))C" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment