Skip to content

Instantly share code, notes, and snippets.

@atomicstack
Created November 2, 2020 00:35
Show Gist options
  • Save atomicstack/0749b42af1480566e4e80d816e91218b to your computer and use it in GitHub Desktop.
Save atomicstack/0749b42af1480566e4e80d816e91218b to your computer and use it in GitHub Desktop.
reading thermals for the RPi without needing vcgencmd
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