Skip to content

delneg/apple-m1-temp-sensor-objc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published