delneg / apple-m1-temp-sensor-objc

ObjC code to get my CPU temp instead of "osx-cpu-temp", intended for use with "archey4"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apple M1 temp sensor

Why ?

I was frustrated by "Temperature: Not detected" in https://github.com/HorlogeSkynet/archey4 output.

How to use ?

git clone https://github.com/delneg/apple-m1-temp-sensor-objc.git
cd apple-m1-temp-sensor-objc
make build
ln -s ~/.local/bin/temp_sensor ~/.local/bin/osx-cpu-temp
archey -j | jq ."data"."Temperature"
#{
#  "temperature": 41.2,
#  "max_temperature": 41.2,
#  "char_before_unit": " ",
#  "unit": "C"
#}

About

ObjC code to get my CPU temp instead of "osx-cpu-temp", intended for use with "archey4"


Languages

Language:Objective-C 94.3%Language:Makefile 5.7%