macos-temperature-sensor
Advanced tools
+1
-1
| { | ||
| "name": "macos-temperature-sensor", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "gypfile": true, |
+39
-5
@@ -12,4 +12,6 @@ # macos-temperature-sensor | ||
| This small library captures CPU temperature on macOS, all values are in degree Celsius. This library is intended to be used server side (not within a browser) and is designed to work with apple silicon processors. | ||
| This small library captures CPU temperature on macOS (Apple silicon processors), all values are in degree Celsius. This library is intended to be used server side (not within a browser) and is designed to work on ARM based systems. | ||
| This library is a replacement for our old [osx-temperature-sensor][osx-temp-npm-url] package (which was designed to work on intel based machines). | ||
| ### Installation | ||
@@ -21,3 +23,2 @@ | ||
| ### Using this library with Deno: | ||
@@ -46,3 +47,3 @@ | ||
| ```js | ||
| const macosTemp = require('macos-temperature-sensor'); | ||
| const macosTemp = require('macos-temperature-sensor');v | ||
@@ -68,3 +69,30 @@ let temperature = macosTemp.temperature(); | ||
| #### Sample output: | ||
| ```json | ||
| { | ||
| cpu: 45.832000732421875, | ||
| soc: 45.34083271026611, | ||
| gpu: 45.42668151855469, | ||
| cpuDieTemps: [ | ||
| 45.832000732421875, 45.121612548828125, | ||
| 45.21040344238281, 45.121612548828125, | ||
| 45.121612548828125, 45.21040344238281, | ||
| ... | ||
| ], | ||
| probeGroupsTemps: [ | ||
| 45.56561279296875, | ||
| 45.56561279296875, | ||
| 45.476806640625, | ||
| ... | ||
| ], | ||
| gpuDieTemps: [ | ||
| 40.06523132324219, 34.63139343261719, | ||
| 45.02667236328125, 44.929351806640625, | ||
| 44.70109558105469, 41.27174377441406, | ||
| ... | ||
| ] | ||
| } | ||
| ``` | ||
| ## News and Changes | ||
@@ -74,5 +102,10 @@ | ||
| - Version 1.0.1: fix lib index reference | ||
| - Version 1.0.0: initial release | ||
| | Version | Date | Comment | | ||
| | ------- | ---------- | --------------------------------------------------------------------------------------------------- | | ||
| | 1.0.3 | 22.12.2025 | doc improvements | | ||
| | 1.0.2 | 21.12.2025 | added TS typings, doc improvements | | ||
| | 1.0.1 | 21.12.2025 | fix lib index reference | | ||
| | 1.0.0 | 21.12.2025 | initial release | | ||
| If you have comments, suggestions & reports, please feel free to contact me! | ||
@@ -169,1 +202,2 @@ | ||
| [systeminformation-github-url]: https://github.com/sebhildebrandt/systeminformation | ||
| [osx-temp-npm-url]: https://www.npmjs.com/package/osx-temperature-sensor |
69912
1.83%198
20.73%