07-28-2013, 05:21 AM
(This post was last modified: 07-28-2013, 05:21 AM by supertransformer.)
(07-28-2013, 05:10 AM)xoft Wrote: The RasPi has a sensor built into the CPU, I once found the exact linux command to execute to find out the value, alas, I don't remember it anymore.
to get the tempeture its: vcgencmd measure_temp
if you want farenheight its:
#!/bin/bash
tm=`/opt/vc/bin/vcgencmd measure_temp`
tc=`echo $tm| cut -d '=' -f2 | sed 's/..$//'`
tf=$(echo "scale=2;((9/5) * $tc) + 32" |bc)
echo $tf\°F
put that into a .sh file and then execute it