Thursday 28 March 2013

How To Check Your Temperature Of Your Raspberry Pi in Raspbian

First Login into your pi via local terminal or remote ssh terminal.
Me I’m gonna use Putty to access my Pi.
image
Next you need to install BC which most linux editions have yet the Raspberry does not.
#sudo apt-get install bc
*TIP* – To stay as root without having to sudo everytime use the command

#sudo -i
image
This should show when it’s installed
image
Next we need to download the Temp Check Script. I keep a copy in the Windows Linux Commands Dropbox Folder under the Scripts folder, as these files work fine for me.
To do this we need to type the following:
#wget  https://www.dropbox.com/sh/f9udfyer4ktmjdg/pDocgOCmP5/Scripts/TempCheck.sh
This will download the file to your raspberry pi.
image
Once downloaded all we have to do is run it and it should show us the current temperature of your Raspberry Pi (R-Pi)
To run the script type the following command:
#sh TempCheck.sh
and you should get this the current temperature of your Raspberry Pi:
image
image
Thanks for reading please comment below if you don’t understand anything.

1 comment:

  1. Or just type : cat /sys/class/thermal/thermal_zone0/temp

    ReplyDelete