CPU Temperature - Raspberry Pi

From ETCwiki
Revision as of 18:07, 25 September 2013 by Ddxfish (talk | contribs) (Ddxfish moved page Raspberry Pi - Check CPU Temperature to CPU Temperature - Raspberry Pi)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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