-
-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple Silicon M1 compatibility #453
Comments
Hh |
|
You're right I could obtain them using this https://github.com/fermion-star/apple_sensors. You need to compile and run it and then It returns the values of all temperature sensors as a stream to stdout. Looking at the implementation (2 files) might be useful in supporting M1 CPU temps. |
@LeeCheneler @sebhildebrandt Here's an easy way it can be done with a binary... const path = require("path")
const binary = path.join(__dirname, '/path/to/binary')
const { exec } = require("child_process");
// containing binary call in string in case your binary needs args, like the above linked one. It's args are v (for values) and n (for names), no hyphens.
exec(`${binary}`, (error, stdout, stderr) => {
if (stdout) {
console.log(stdout) // log the stdout here or do whatever formatting you need to apply to the output
} else {
console.log(stderr)
console.log(error)
}
}) The binary from this repo is a pretty good one. It uses a modified fermion-star/apple_sensors. Just be aware that if you want to split the binary's dirty output into an array, say using 👍 |
Also, in the |
hello! any news about the temperature problem in M1 or M2? |
New Apple silicon hardware (M1) just arrived 👍
I already checked compatibility and made first fixes. Here I provide a list, what is already working and what still needs to be fixed.
All tests are done with native nodejs installation
node -v
: v15.4.0os.platform()
: 'darwin'os.arch()
: 'arm64'Installation
System
CPU
osx-temperature-sensor
package does not return correct values. Needs further investigationMemory
Battery
Graphics
vramDynamic
should be true ... fixedOperating System
Processes and Services
File System
Network / Wifi
Docker
Testet with Tech Preview of Docker Desktop for M1 (Dec. 16, 2020)
Virtual Box
Current status of System Information version 4.31.0
The text was updated successfully, but these errors were encountered: