Created
November 2, 2020 00:35
-
-
Save atomicstack/0749b42af1480566e4e80d816e91218b to your computer and use it in GitHub Desktop.
reading thermals for the RPi without needing vcgencmd
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
rp1-cluster1 ~ % for zone in /sys/class/thermal/thermal_zone*; do echo -n "$(basename $zone)="; cat $zone/temp | perl -nE 'printf(qq{%.02fC\n}, ($_/1000))'; done | |
thermal_zone0=42.35C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment