sebhildebrandt / systeminformation

System Information Library for Node.JS
MIT License
2.65k stars 300 forks source link

cpuTemprature() always returns same temprature #879

Closed ElsevarAsadov closed 6 months ago

ElsevarAsadov commented 6 months ago

I always get same temprature when i call method.

const si = require("systeminformation");
si.cpuTemperature().then(data=>console.log(data));

EDIT: i also tested using admin privileged command line still same.in windows 11 i cannot event get any value without admin access with admin access i get the same value everytime

sebhildebrandt commented 6 months ago

@ElsevarAsadov please have a look at the documentation (https://systeminformation.io/issues.html). Not all BIOS driver implementations return proper values. So if Windows cannot determine the correct values (see also underlying powershell command), we cannot display correct values here. You can test, if windows can get valid values by running (in powershell):

Get-CimInstance MSAcpi_ThermalZoneTemperature -Namespace "root/wmi" | Select CurrentTemperature