CPU Temperature - Raspberry Pi
From ETCwiki
Jump to navigationJump to searchMake a simple script that tells u the temperature of your raspberry pi's onboard temperature sensor (no, I dont know where it is!) Make a file called degree.sh in your scripts directory (wherever you save urs)
touch degree.sh chmod +x degree.sh nano degree.sh
Now, Add these lines
#!/bin/bash /opt/vc/bin/vcgencmd measure_temp
Save and exit. Test by using
sh degree.sh