Created
December 4, 2018 11:16
-
-
Save magnusstubman/1150f45d67021b8812f882de74adac87 to your computer and use it in GitHub Desktop.
raspbian raspberry pi temperature
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
#!/bin/bash | |
cpu=$(cat /sys/class/thermal/thermal_zone0/temp | sed 's/./&./2') | |
echo "cpu $cpu c" | |
gpu=$(/opt/vc/bin/vcgencmd measure_temp | cut -d'=' -f2 | cut -d"'" -f1) | |
echo "gpu $gpu c" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment