{"_id":"smc","_rev":"974106","name":"smc","description":"Node module to read the CPU temperature and fan speed on osx using smc","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"mmarcon","email":"me@marcon.me"}],"time":{"modified":"2024-09-05T14:31:10.000Z","created":"2014-09-17T08:44:09.015Z","2.0.0":"2017-01-09T12:09:38.216Z","1.0.3":"2016-04-01T11:53:59.425Z","1.0.2":"2014-09-17T08:56:31.436Z","1.0.1":"2014-09-17T08:49:49.436Z","1.0.0":"2014-09-17T08:44:09.015Z"},"users":{"rchk":true},"author":{"name":"Massimiliano Marcon"},"repository":{"type":"git","url":"git+https://github.com/mmarcon/node-smc.git"},"versions":{"2.0.0":{"name":"smc","version":"2.0.0","description":"Node module to read the CPU temperature and fan speed on osx using smc","main":"index.js","author":{"name":"Massimiliano Marcon"},"license":"GPL","gypfile":true,"os":["darwin"],"engines":{"node":">=0.12"},"repository":{"type":"git","url":"git+https://github.com/mmarcon/node-smc.git"},"keywords":["cpu","temperature","smc","osx","darwin","mac","addon"],"scripts":{"install":"node-gyp rebuild"},"gitHead":"24dc8174825914a86cb77a3af04d14afe9acce18","bugs":{"url":"https://github.com/mmarcon/node-smc/issues"},"homepage":"https://github.com/mmarcon/node-smc#readme","_id":"smc@2.0.0","_shasum":"2cc6a3e3db3bda9525b34b4328112de07ecc34dd","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"mmarcon","email":"me@marcon.me"},"dist":{"shasum":"2cc6a3e3db3bda9525b34b4328112de07ecc34dd","tarball":"http://registry-npm.ywwl.com/smc/download/smc-2.0.0.tgz","integrity":"sha512-eRiSIzOZh5wmd5TdlLHmbHtCtpJofQJMDsQKRPu7k6xVRNc8eNdaj6n7WfI5f34dJkcmWuQRHkOaspgOE7QBVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7aaZhbNr5iPUZds6XD7KAsiTG2nKagzYWRFA68rK7KwIhAIQpAzmJfRP96SWhZkE5lMj+ZG4CJq/SpIJivngv2pJs"}],"size":4687,"noattachment":false,"key":"/smc/-/smc-2.0.0.tgz"},"maintainers":[{"name":"mmarcon","email":"me@marcon.me"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/smc-2.0.0.tgz_1483963775966_0.6580839050002396"},"directories":{},"publish_time":1483963778216,"_cnpm_publish_time":1483963778216},"1.0.3":{"name":"smc","version":"1.0.3","description":"Node module to read the CPU temperature and fan speed on osx using smc","main":"index.js","author":{"name":"Massimiliano Marcon"},"license":"GPL","gypfile":true,"os":["darwin"],"engines":{"node":">=0.12"},"repository":{"type":"git","url":"git+https://github.com/mmarcon/node-smc.git"},"keywords":["cpu","temperature","smc","osx","darwin","mac","addon"],"scripts":{"install":"node-gyp rebuild"},"gitHead":"fe4c4f31a56a9baffa1933bf5cad9f23a136b4dc","bugs":{"url":"https://github.com/mmarcon/node-smc/issues"},"homepage":"https://github.com/mmarcon/node-smc#readme","_id":"smc@1.0.3","_shasum":"0e1134bfe1ffd1978da1cb3b34a4f5817864b2f2","_from":".","_npmVersion":"3.5.1","_nodeVersion":"5.0.0","_npmUser":{"name":"mmarcon","email":"me@marcon.me"},"maintainers":[{"name":"mmarcon","email":"me@marcon.me"}],"dist":{"shasum":"0e1134bfe1ffd1978da1cb3b34a4f5817864b2f2","tarball":"http://registry-npm.ywwl.com/smc/download/smc-1.0.3.tgz","integrity":"sha512-Gkb9lPfYeAgt9WUVYPrLf8gHtcgjugFmlfTCBlokiuPrtt+EMz5LzkuYpSpxVJB9L2Z4DO9+0PdkS3bDBkXnrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDa3hBvHBmBWA4PuFEVN6LnANRY+pOFGwEqqLXdkZ2o5gIhAJbNJb4cCw+/5d8nnaxa20cMPPxTzR4G5NekCJKGB1rB"}],"size":4182,"noattachment":false,"key":"/smc/-/smc-1.0.3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/smc-1.0.3.tgz_1459511637237_0.7633708480279893"},"directories":{},"publish_time":1459511639425,"_cnpm_publish_time":1459511639425},"1.0.2":{"name":"smc","version":"1.0.2","description":"Node module to read the CPU temperature and fan speed on osx using smc","main":"index.js","author":{"name":"Massimiliano Marcon"},"license":"GPL","gypfile":true,"os":["darwin"],"repository":{"type":"git","url":"https://github.com/mmarcon/node-smc.git"},"keywords":["cpu","temperature","smc","osx","darwin","mac","addon"],"scripts":{"install":"node-gyp rebuild"},"gitHead":"08024527bd8ffd1f69c1b4815652ce5a326bb51a","bugs":{"url":"https://github.com/mmarcon/node-smc/issues"},"homepage":"https://github.com/mmarcon/node-smc","_id":"smc@1.0.2","_shasum":"ddfefa0d0713e96478379576ce250a591eddc532","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"mmarcon","email":"me@marcon.me"},"maintainers":[{"name":"mmarcon","email":"me@marcon.me"}],"dist":{"shasum":"ddfefa0d0713e96478379576ce250a591eddc532","tarball":"http://registry-npm.ywwl.com/smc/download/smc-1.0.2.tgz","integrity":"sha512-N/dheOznJbpsbypBd6GhoZzbA30UsShITaq0evQUGfdxq7tQ54CtG2AtPvbopGvZp5zePXdpWUn5CGLryTW3gg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAoyYc0F5dyK0tcaXF5Z2Zp0XVTCXnFgCUXMEL57YbPIAiEA6hv3oyP4gT6wyoOtbCDB20exGfO6+9PV8c9363oV3TE="}],"size":4173,"noattachment":false,"key":"/smc/-/smc-1.0.2.tgz"},"directories":{},"publish_time":1410944191436,"_cnpm_publish_time":1410944191436},"1.0.1":{"name":"smc","version":"1.0.1","description":"Gives access to the CPU temperature on osx using smc","main":"index.js","author":{"name":"Massimiliano Marcon"},"license":"GPL","gypfile":true,"os":["darwin"],"repository":{"type":"git","url":"https://github.com/mmarcon/node-smc.git"},"keywords":["cpu","temperature","smc","osx","darwin","mac","addon"],"scripts":{"install":"node-gyp rebuild"},"gitHead":"113e295a8c7b338818fb01ad9c0f0ad915e13d7a","bugs":{"url":"https://github.com/mmarcon/node-smc/issues"},"homepage":"https://github.com/mmarcon/node-smc","_id":"smc@1.0.1","_shasum":"ba06a4eb4823de137117d3ce569c677061459e06","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"mmarcon","email":"me@marcon.me"},"maintainers":[{"name":"mmarcon","email":"me@marcon.me"}],"dist":{"shasum":"ba06a4eb4823de137117d3ce569c677061459e06","tarball":"http://registry-npm.ywwl.com/smc/download/smc-1.0.1.tgz","integrity":"sha512-5Cbq6IunR5k7Ek3kIxr4hD3ehnCywo54xfktX6yzHGhJBV7xOceppJo62FjxNrKFJMf+Ln13Ja4EvowxuWBo4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGgKy0agmyzoEcEq/P18jojL/IISM92dO1jRqQ9UblmfAiARRRGgxTnbLXc+C8oAJi3D1xl0MdkigEYzPATzCKsm0g=="}],"size":4116,"noattachment":false,"key":"/smc/-/smc-1.0.1.tgz"},"directories":{},"publish_time":1410943789436,"_cnpm_publish_time":1410943789436},"1.0.0":{"name":"smc","version":"1.0.0","description":"Gives access to the CPU temperature on osx using smc","main":"index.js","author":{"name":"Massimiliano Marcon"},"license":"GPL","gypfile":true,"os":["darwin"],"repository":{"type":"git","url":"https://github.com/mmarcon/node-smc.git"},"keywords":["cpu","temperature","smc","osx","darwin","mac","addon"],"scripts":{"install":"node-gyp rebuild"},"gitHead":"bdb648c78c8d62840127a427ab66d59eabc75ff0","bugs":{"url":"https://github.com/mmarcon/node-smc/issues"},"homepage":"https://github.com/mmarcon/node-smc","_id":"smc@1.0.0","_shasum":"cac72cc7e47861a05f4d3e88cb812028d2eb56aa","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"mmarcon","email":"me@marcon.me"},"maintainers":[{"name":"mmarcon","email":"me@marcon.me"}],"dist":{"shasum":"cac72cc7e47861a05f4d3e88cb812028d2eb56aa","tarball":"http://registry-npm.ywwl.com/smc/download/smc-1.0.0.tgz","integrity":"sha512-ZhUEAcP/2l4sTSvDG0MBJDPEmXRSuP5cm90dpRPqKz7LpYB/WW5Fduyb66MNACi0zzPvXdy8RYFxs5kltjOFtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSeOZ26jlHXqTqb8CdU7WgYEC//U44NmJ7Yxpaa2mrcgIgHLjQ9bvQ8J+I+5+ACOYjQJQGlCRhG/7jCWd5qvWFm08="}],"size":4049,"noattachment":false,"key":"/smc/-/smc-1.0.0.tgz"},"directories":{},"publish_time":1410943449015,"_cnpm_publish_time":1410943449015}},"readme":"# Node SMC\n\nThis node module uses [Apple's SMC subsystem](http://en.wikipedia.org/wiki/System_Management_Controller) to query the system for the CPU temperature, number of fans and for each of the fans retrieves the current RPM.\n\n**This packages works on OSX only**.\n\n## Installation\n\n```sh\nnpm install smc\n```\n\n## Example\n\n```javascript\nvar smc = require('smc');\n\nObject.keys(smc.metrics).forEach(function(key) {\n  var value = smc.get(key);\n  if (value > 0) {\n    console.log(key, smc.metrics[key]+':', value);\n  }\n});\n\nvar i, f = smc.fans();\n\nfor (i = 0; i < f; i++) {\n  console.log('F'+i+'Ac', 'Fan', i, 'RPM:', smc.fanRpm(i));\n}\n```\n\nOn my Macbook Pro this prints out the following:\n\n```\nTB0T Battery TS_MAX: 34.59765625\nTB1T Battery 1: 34.59765625\nTB2T Battery 2: 32.59765625\nTCXC PECI CPU: 78.875\nTC0E CPU 0 ??: 80.56640625\nTC0F CPU 0 ??: 82.16015625\nTC0P CPU 0 Proximity: 65.875\nTC1C Core 1: 77\nTC2C Core 2: 78\nTC3C Core 3: 77\nTC4C Core 4: 75\nTCGC PECI GPU: 78\nTCSA PECI SA: 78\nTh1H NB/CPU/GPU HeatPipe 1 Proximity: 51.625\nTM0P Memory Slot Proximity: 53.125\nTM0S Memory Slot 1: 53.1171875\nTPCD Platform Controller Hub Die: 57\nTs0P Palm rest L: 32.5\nTs0S Memory Bank Proximity: 40.23046875\nTW0P AirPort Proximity: 48.5\nF0Ac Fan 0 RPM: 2160\nF1Ac Fan 1 RPM: 2001\n```\n\n## Credits\n\nMost of the work was done by [Sébastien Lavoie](https://github.com/lavoiesl) in his [osx-cpu-temp](https://github.com/lavoiesl/osx-cpu-temp) code. I just took it and made it into a node module, as it was convenient for me to use it that way.\n\nAdditional credit goes to [Hendrik Holtmann](https://github.com/hholtmann), the author of [smcFanControl](https://github.com/hholtmann/smcFanControl) as his code inspired osx-cpu-temp and as I used part of the code of smcFanControl to query the fan speed and format the result.\n\n## License\n\n[GNU General Public License, version 2](http://www.gnu.org/licenses/gpl-2.0.html)\n\n## TODO\n\nMake it asynchronous, as currently everything happens synchronously.\n","_attachments":{},"homepage":"https://github.com/mmarcon/node-smc#readme","bugs":{"url":"https://github.com/mmarcon/node-smc/issues"},"license":"GPL"}