You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>To be able to measure temperature on macOS I created a little additional package. Due to some difficulties in NPM with <spanclass="code">optionalDependencies</span>
I unfortunately was getting unexpected warnings on other platforms. So I decided to drop this optional dependency for macOS - so by default,
you will not get correct values.</p>
<p>This additional package is now also supporting Apple Silicon M1 machines.</p>
<p>But if you need to detect macOS temperature just run the following additional installation command:</p>
<p>systeminformation will then detect this additional library and return the temperature when calling systeminformations standard function <spanclass="code">cpuTemperature()</span></p>
<h4>Windows Temperature, Battery, ...</h4>
<p><spanclass="code">get-WmiObject</span> - which is used to determine temperature and battery sometimes needs to be run with admin
privileges. So if you do not get any values, try to run it again with according privileges. If you still do not get any
values, your system might not support this feature. In some cases we also discovered that get-WmiObject returned incorrect temperature values.</p>
<h4>Linux Temperature</h4>
<p>In some cases you need to install the linux <spanclass="code">sensors</span> package to be able to measure temperature e.g. on DEBIAN based systems by running</p>
<pre>$ sudo apt-get install lm-sensors</pre>
<h4>Windows, macOS - CPU Speed</h4>
<p><spanclass="code">node.js</span> and <spanclass="code">get-WmiObject</span> are not able to determine correct CPU current speed on windows and macOS.
This means, you will have constant values here on both platforms for all processor cores in <spanclass="code">cpuCurrentSpeed()</span>.</p>
<h4>Linux S.M.A.R.T. Status</h4>
<p>To be able to detect S.M.A.R.T. status on Linux you need to install <spanclass="code">smartmontools</span>. On DEBIAN based linux distributions you can install it by running:</p>
<pre>$ sudo apt-get install smartmontools</pre>
<p>If you have smartmontools version >= 7.0 then you will get also full smart data in diskLayout()</p>
<h4>Stats Functions</h4>
<p>To get correct values with <spanclass="code">fsStats()</span>, <spanclass="code">disksIO()</span> and <spanclass="code">networkStats()</span> please check <ahref="statsfunctions.html">this guide</a></p>
<h4>Empty / incorrect values</h4>
<p>If you discover empty or incorrect values, please keep in mind that some underlying commands need to be run under admin privileges. So if you run your scripts as normal users, not all system information values can be determined. For linux this is e.g. the case for `memLayout()`, advances `system()`, `bios()`, `baseboard()`, `cpu()`information, S.M.A.R.T. status and others... </p>
<h4>Encoding issues - Windows</h4>
<p>I now reimplemented all windows functions to avoid encoding problems (special chacarters). And as Windows 11 also dropped <spanclass="code">wmic</span> support, I had to move completely to <spanclass="code">powershell</span>. Be sure that powershell version 5+ is installed on your machine. On older Windows versions (7, 8) you might still see encoding problems due to the old powershell version.</p>
<h4>Finding New Issues</h4>
<p>If you still have problems, please feel free to open an issue on our <ahref="https://github.com/sebhildebrandt/systeminformation/issues">github page</a></p>