I have been looking on the internet and found nothing for getting readings of the temperatures of the CPU on the Raspberry Pi.
Im using Raspbian (Wheezy).
Any help would be great for everyone!
I have been looking on the internet and found nothing for getting readings of the temperatures of the CPU on the Raspberry Pi.
Im using Raspbian (Wheezy).
Any help would be great for everyone!
I found an answer at http://www.raspberrypi.org forums. You can read the CPU temp via bash script. Save this script as getTemp.sh in /usr/local/bin folder and give execute permission with chmod +x /usr/local/bin/getTemp.sh command. Then run it, you will get temp values.
#!/bin/bash
cpuTemp0=$(cat /sys/class/thermal/thermal_zone0/temp)
cpuTemp1=$(($cpuTemp0/1000))
cpuTemp2=$(($cpuTemp0/100))
cpuTempM=$(($cpuTemp2 % $cpuTemp1))
echo CPU temp"="$cpuTemp1"."$cpuTempM"'C"
echo GPU $(/opt/vc/bin/vcgencmd measure_temp)
/sys/class/thermal_zone0/temp
does not require no graphs nor jquery – lenik Aug 20 '13 at 08:0347615
means47.615 °C
) – PiBorg Aug 20 '13 at 08:36notice how mine doesnt say "convert". mine is nothing like the one you linked.
, you make it sound like lenik is wrong and gurcanozturk is right, both examples basically do the same thing. – PiBorg Aug 20 '13 at 12:32