From f7d6a13f4f549cbbb853c2c87cd0db487c73a55b Mon Sep 17 00:00:00 2001 From: yifan wang Date: Sun, 29 Nov 2020 19:00:23 -0500 Subject: [PATCH] readme --- readme.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index af8325f..673b39f 100644 --- a/readme.md +++ b/readme.md @@ -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