filippo1982

Q: 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

Close

Q: check macbook pro temperature by terminal

  • All replies
  • Helpful answers

first Previous Page 3 of 3
  • by m0thr4,

    m0thr4 m0thr4 Jan 10, 2015 4:29 PM in response to brickhead248
    Level 1 (115 points)
    Audio
    Jan 10, 2015 4:29 PM in response to brickhead248

    brickhead248 wrote:

     

    Hi kmontgomery,

    I had the same issue as you.

    The issue was solved by installing xcode tools

    $ xcode-select --install

    Accepting the xcode licence

    $ xcodebuild --license

    and running the fix outlined in the readme

    sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install iStats

    The software works brilliantly, thank you developers for doing such a great job!

    Thanks for that - this helped me... except for one small correction:

     

    sudo xcodebuild -license

     

    Somewhat unconventionally, Xcode's long opts format uses only a single dash.  :-)

  • by echo_eeco,

    echo_eeco echo_eeco Apr 28, 2015 10:11 PM in response to VikingOSX
    Level 1 (1 points)
    Apr 28, 2015 10:11 PM in response to VikingOSX

    Thanks installed on Mac OS X Yosemite, glad it work.

  • by juanfal,

    juanfal juanfal May 8, 2015 3:54 AM in response to VikingOSX
    Level 1 (0 points)
    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 


  • by kamilfrombohumin,

    kamilfrombohumin kamilfrombohumin Sep 28, 2015 7:44 AM in response to ChrisND911
    Level 1 (0 points)
    Sep 28, 2015 7:44 AM in response to ChrisND911

    Well done. Even ASCII graphic looks nice.

  • by jcolemanis,

    jcolemanis jcolemanis Aug 31, 2016 10:12 AM in response to VikingOSX
    Level 1 (4 points)
    Aug 31, 2016 10:12 AM in response to VikingOSX

    this is great - worked perfect - thanks! (10.10.5, MBP retina, 13", early 2015)

first Previous Page 3 of 3