This commit is contained in:
yifan wang 2020-11-29 19:00:23 -05:00
parent 9b25cbf035
commit f7d6a13f4f
1 changed files with 7 additions and 5 deletions

View File

@ -1,18 +1,20 @@
# Temperature Sensor Monitor for Apple Silicon M1
- temp_sensor.m: A modified version of the [code](https://github.com/freedomtan/sensors/blob/master/sensors/sensors.m) for iOS sensor by [freedomtan](https://github.com/freedomtan);
- `temp_sensor.m`: A modified version of the Objective-C [code](https://github.com/freedomtan/sensors/blob/master/sensors/sensors.m) for iOS sensor by [freedomtan](https://github.com/freedomtan);
- monitor.cpp: A c++ wrapper of Objective-C output for monitoring temperature in the terminal.
- `monitor.cpp`: A naive C++ wrapper for `temp_sensor.m` output for monitoring temperature in the terminal.
## Usage
`./temp_sensor | ./monitor`
Compile `temp_sensor.m` and `monitor.cpp` individually. Then
Only test with my Mac mini with M1. Please check your mac's `ioreg -lfx` output if needed.
`./temp_sensor | ./monitor` or `./temp_sensor`
Only test with my Mac mini with M1. Please check your mac's `ioreg -lfx` output to make changes in `temp_sensor.m` if needed.
## References
For better names (e.g. what is `PMU TP3w` ?) for the sensors, please refer to
For **better names** (e.g. what is `PMU TP3w` ?) for the sensors, please refer to
https://github.com/exelban/stats/blob/master/Modules/Sensors/values.swift