Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically read CPU temperature (+ other sensor data) on MacOSX (Macbook Pros)

I'd like to programmatically read CPU temperature + any other interesting sensor data from my MacBook Pro (2009 model).

How do I do it?

I noticed a previous post pointing to this open source software, but it seems to be incompatible with my model.

I notice that there are numerous apps which are able to do it, so it must be possible!

like image 733
Prembo Avatar asked Jan 06 '12 10:01

Prembo


People also ask

Does MacBook Pro have temperature sensor?

Your MacBook's ambient temperature should between 10° and 35°C (50° and 95°F). Each notebook includes a series of sensors for temperature detection. The MacBook Pro and older MacBook Air models include a built-in fan that turns on automatically to cool critical components.

Does Mac Have a temperature monitor?

Mac notebooks have sensors that detect temperature changes inside your computer. If your Mac notebook has fans, they turn on automatically to cool critical components. Tips to manage the operating temperature: Make sure that you've installed all Mac software updates.


1 Answers

I found this opensource that maybe help you on the idea of how to do it (it's newer than your reference). https://github.com/lavoiesl/osx-cpu-temp

like image 126
incous Avatar answered Oct 20 '22 02:10

incous