Reply
Thread Tools
Munk's Avatar
Posts: 229 | Thanked: 108 times | Joined on Oct 2007 @ Sacramento, California
#1
Hi,

Is there a way to read the internal temperature through Python?

If not, is there a way to run the internal-temp program from Nitapps.com and capture its output?

Thanks in advance.
 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#2
import commands
devs = commands.getoutput("/usr/bin/internal-temp")
print "Temp : " + devs
 

The Following 2 Users Say Thank You to Khertan For This Useful Post:
Munk's Avatar
Posts: 229 | Thanked: 108 times | Joined on Oct 2007 @ Sacramento, California
#3
Kherton THANKS!

MAN! That was quick, I Love this community on internettablettalk.

It works like you said, and works great.

Thanks again.
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#4
Internal-temp reads the temperature from /sys/devices/platform/i2c_omap.1/i2c-1/1-0048/temp1_input - might be worth doing the same thing yourself so you don't have to depend on internal-temp.
 

The Following User Says Thank You to codeMonkey For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:28.