1
mons 2022-02-27 13:40:38 +08:00 1
1. Intel Mac 可以直接用 powermetrics 读 smc 拿 CPU 温度
sudo powermetrics --samplers smc | grep -i "CPU die temperature" Source: https://apple.stackexchange.com/a/372928 2. M1 Mac 目前好像没法用自带 CLI 读取(没实现),得用 API ,见 https://github.com/yujitach/MenuMeters/commit/5604e769b9bf5cc0a5ee6f0c6f99ecca570f1b37#diff-69ec57a2eaee2a9eae215332a60e6b2ce67e378314670e5112c39029f445ab3aR54-R72 Source: https://stackoverflow.com/a/68864575 ) |
2
foam 2022-02-27 13:43:58 +08:00 1
|
3
ChrisFreeMan OP |
4
Macolor21 2022-02-27 14:14:10 +08:00 1
可以看下开源的 Mac 状态栏监控的实现? https://github.com/exelban/stats
|
5
atangdi 2022-02-27 14:19:20 +08:00 via Android
柠檬就有了现在
|