CPU Temperature - Raspberry Pi

From ETCwiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Make 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