I am working on a project where I want to access and display the temperature of my CPU. I found a tutorial where I via the "systeminformation" package can gain access to mutliple CPU stats. But when I use the cpuTemperature function it does not return the temperature, instead it returns "-1" and empty list and "-1".
si.cpuTemperature(function(data) {
console.log('CPU-Temperature:');
console.log(data);
});
=> { main: -1, cores: [], max: -1 }
Am I doing something wrong or is my CPU not supporting this type of event?
Tutorial I have used: https://github.com/sebhildebrandt/systeminformation