iStats is a command-line tool that allows you to easily grab the CPU temperature, fan speeds and battery information on OS X. If you'd like to see more data available feel free to open an issue.
$ gem install iStats
This is now fixed with the release of OS X 10.9.3
A bug in Ruby and Apple XCode 5.1 onwards (new CLANG version) might make it impossible to install this gem if you are using Ruby from the Xcode command-line tools package. If you see an error when the gem is building the native extension try to use this command to install iStats:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install iStats
If you are using RVM or homebrew to manage your Ruby installation you should be fine.
- iStats: help ---------------------------------------------------
istats --help This help text
istats --version Print current version
istats all Print all stats
istats cpu Print all CPU stats
istats cpu [temp | temperature] Print CPU temperature
istats fan Print all fan stats
istats fan [speed] Print fan speed
istats battery Print all battery stats
istats battery [health] Print battery health
istats battery [cycleCount | cc] Print battery cycle count info
istats battery [temp | temperature] Print battery temperature
istats battery [time | remain] Print battery time remaining
istats battery [charge] Print battery charge
istats battery [capacity] Print battery capacity info
for more help see: https://github.com/Chris911/iStats
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
MacBook Pro 2012
OS X 10.9.3
Ruby: 1.9.3, 2.0.0, 2.1.1