Previous 1 2 3 Next 33 Replies Latest reply: Jan 10, 2015 4:29 PM by m0thr4 Go to original post
  • filippo1982 Level 1 Level 1 (0 points)
    Yes, this is what i am looking for, but you check it with "temp monitor"
    I am able to do that with "temperature monitor" :

    /Applications/TemperatureMonitor.app/Contents/MacOS/tempmonitor -c -l -a

    I would like to know if it's possible to check out the sensor without specific applications, but only using shell's command line's script!
  • Baumkartoffel Level 1 Level 1 (140 points)
    filippo1982, are you asking whether there is a built-in command in a shell that will provide the temperature, or are you asking whether there is a command-line executable that comes with Mac OS X that will provide the temperature?

    If you are asking about a built-in shell command, then the answer is definitely no; none of the shells provide temperature information. If you are asking about a command-line executable that comes with Mac OS X (i.e. a version that is supported on a MacBookPro5,5), then the answer so far also appears to be no, since the ioreg command doesn’t provide temperature information on a MacBookPro5,5.
  • filippo1982 Level 1 Level 1 (0 points)
    Ok,
    that is what i was trying to understand!
    So there is not a a built-in shell command to check out the sensores temperrature!
    Thank you!

    Filippo
  • MrHoffman Level 6 Level 6 (12,960 points)
    I cannot enter because membership costs 99$/year!


    [If you're not ready to join one of our developer programs, you can register as an Apple Developer for free|http://developer.apple.com/programs/which-program>.
  • mattfromottawa Level 1 Level 1 (0 points)

    We just released Check My Temp in the Mac App Store which is a simple to use utility to see the temperature values for all the sensors in your Mac as well as the fan RPMs.

     

    Check it out at http://itunes.apple.com/app/check-my-temp/id467830521?mt=12

     

    Give it a try and let us know what you think!

  • WarzauWynn Level 1 Level 1 (0 points)

    I came across this thread while looking for a CLI temperature monitor, and the last reply solved my problem.

     

    tempmonitor is also not dependent on any of the other resources from that app, so you can copy it out to wherever you want, which is very useful.

     

    FYI, I'm using OS 10.7.3 on an i7 MBA and it reads 11 sensors.  Awesome.

  • gerrysteele Level 1 Level 1 (0 points)

    Yes.. but his question was how are you deriving that information from the system, be it via API or whatnot

  • mattfromottawa Level 1 Level 1 (0 points)

    Hi,

     

    Yes, Temperature Gauge (was called Check My Temp) gets the temperature and fan speeds right from the hardware.  We're actually working on version 4.0 which will include support for even more sensors and other improvements.  If you have any questions about it, please feel free to ask here or email tunabellysoftware@me.com

     

    For more info, check out http://www.tunabellysoftware.com/temperature_gauge/.

     

    Cheers!

     

    - Matt

  • hei-zen Level 1 Level 1 (0 points)

    Really disappointing that a.) there seems to be no "native" way of reading this simple values via command line (at least not openly documented in the Mac Developer Library) and b.) nobody seems to get the thread openers question

  • etresoft Level 7 Level 7 (25,245 points)

    a) There is nothing "simple" about IOKit

    b) There are numerous, excellent answers in this thread from people who obviously understand this original poster's question

    c) This is from 2010

  • ChrisND911 Level 1 Level 1 (0 points)

    Just released this ruby gem that lets you see the CPU temperature via the command-line.

     

     

    https://github.com/Chris911/iStats

     

     

    gem install iStats
    
  • bschellenberg Level 1 Level 1 (0 points)

    This is great. Thanks.

  • VikingOSX Level 6 Level 6 (8,210 points)

    If you are running Mountain Lion or Mavericks, instead of Snow Leopard, the following may help.

     

    In terminal, install this Ruby gem:

     

    sudo gem install iStats

     

    You may get an unable to convert “xCA” message during the install, but it does not effect functionality.

     

    iStats -h or just iStats

     

    Output on 2014 MacBook Air (OS X 10.9.4)

     

    Screen Shot 2014-07-22 at 3.25.15 PM.png

  • kmontgomery Level 1 Level 1 (0 points)

    I tried to install and got this in the terminal (OS10.9.4, MacPro6,1):

     

    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...

    ERROR:  Error installing iStats:

      ERROR: Failed to build gem native extension.

     

        /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb

    mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/rub y.h

     

     

    Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/iStats-0.0.9 for inspection.

    Results logged to /Library/Ruby/Gems/2.0.0/gems/iStats-0.0.9/ext/osx_stats/gem_make.out

  • VikingOSX Level 6 Level 6 (8,210 points)

    I am using OS X 10.9.4. Recent Apple compiler technology. Apple supplied Ruby version is 2.0.0p451. Do you have all of these ingredients.

     

    sudo gem install iStats

     

    When I installed iStats v0.0.9, I had just downloaded the Command Line Tools (OS X 10.9) for Xcode Late July 2014 (Jul 21.). I just removed this version of iStat (sudo gem uninstall iStats), and then reinstalled it with the same release of command line tools. This is my output, which I expected, and it still functions normally when run:

     

    odin: ~$ sudo gem install iStats

    Fetching: iStats-0.0.9.gem (100%)

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

    Successfully installed iStats-0.0.9

    Parsing documentation for iStats-0.0.9

    unable to convert "\xCA" from ASCII-8BIT to UTF-8 for ext/osx_stats/osx_stats.bundle, skipping

    unable to convert "\xCA" from ASCII-8BIT to UTF-8 for ext/osx_stats/smc.o, skipping

    unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/osx_stats.bundle, skipping

    Installing ri documentation for iStats-0.0.9

    1 gem installed

     

    Removing iStats gem again, I updated to the Command Line Tools (OS X 10.9) for Xcode Late August (Aug 18). The reinstallation process of iStats v0.0.9 produced identical output to the above, and a working iStats application.

     

    Using the Ruby Version Manager (RVM) and Ruby v2.1.2, the gem installation was even cleaner:

     

    odin: ~$ gem install iStats

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

    Successfully installed iStats-0.0.9

    Parsing documentation for iStats-0.0.9

    Done installing documentation for iStats after 0 seconds

    1 gem installed