Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

check macbook pro temperature by terminal

Hi there,
maybe here i can find some answers to my request posted here:

http://discussions.apple.com/thread.jspa?threadID=2671272&tstart=0

" i am using a macbook pro 5,5 and i want to check the temperature by using my terminal (not using graphical apps).
I think it is possible with "ioreg" command but i cant find anythig on the web that helps me.
Please can you help me?
In any case have i to use an apple script? "

Thank you.

Filippo

MacBook Pro 5.5, Mac OS X (10.6.5)

Posted on Dec 8, 2010 1:12 AM

Reply
34 replies

May 8, 2015 3:54 AM in response to VikingOSX

With Homebrew version of ruby


$ ruby -v

ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]


$ which ruby

/usr/local/bin/ruby


$ gem install iStats

Fetching: sparkr-0.4.1.gem (100%)

Successfully installed sparkr-0.4.1

Fetching: iStats-0.0.9.gem (100%)

Building native extensions. This could take a while...

Successfully installed iStats-0.0.9

Parsing documentation for sparkr-0.4.1

Installing ri documentation for sparkr-0.4.1

Parsing documentation for iStats-0.0.9

Installing ri documentation for iStats-0.0.9

Done installing documentation for sparkr, iStats after 0 seconds

2 gems installed

ai12:48:59 Downloads $ istats

--- CPU Stats ---

CPU temp: 53.75°C ▁▂▃▅▆▇


--- Fan Stats ---

Total fans in system: 1

Fan 0 speed: 0.0 RPM ▁▂▃▅▆▇


--- Battery Stats ---

Battery health: Good

Cycle count: 23 ▁▂▃▅▆▇ 2.3%

Max cycle count: 1000

Current charge: 6489 mAh

Maximum charge: 6717 mAh ▁▂▃▅▆▇ 102.4%

Design capacity: 6559 mAh

Battery temp: 30.69°C

check macbook pro temperature by terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.