narugit / smctemp

Print CPU temperature of macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smctemp

Print CPU and GPU temperatures on macOS.

It works on following macs.

  • arm64 (M3 mac)
  • arm64 (M2 mac)
  • arm64 (M1 mac)
  • x86_64

Acknowledgements

I took the code from hholtmann/smcFanControl/smc-command and modified it to specialize in temperature acquisition. Some of the sensor values were obtained from the exelban/stats project.

How to Use

$ git clone https://github.com/narugit/smctemp
$ cd smctemp
$ sudo make install
$ smctemp -c

Usage

$ smctemp -h
Check Temperature by using Apple System Management Control (Smc) tool 0.3.0
Usage:
./smctemp [options]
    -c         : list CPU temperatures (Celsius)
    -g         : list GPU temperatures (Celsius)
    -h         : help
    -l         : list all keys and values
    -v         : version
    -n         : tries to query the temperature sensors for n times (e.g. -n3) (1 second interval) until a valid value is returned

$ smctemp -c
64.2

$ smctemp -g
36.2

About

Print CPU temperature of macOS

License:GNU General Public License v2.0


Languages

Language:C++ 95.6%Language:Makefile 4.4%