termiboard icon indicating copy to clipboard operation
termiboard copied to clipboard

[Feature] Show cpu temperature

Open DarthBenro008 opened this issue 5 years ago • 2 comments

Please describe the feature you want this project to offer Show CPU temperature of the computer.

Describe the solution you'd like Implement GetCpuTemperature() of cpu.go file.

DarthBenro008 avatar Sep 30 '20 19:09 DarthBenro008

The gopsutil host package has a function SensorsTemperatures() which returns a list of sensor keys and the corresponding temperature. Can this be used to implement this feature?

Parth576 avatar Sep 30 '20 20:09 Parth576

@Parth576 i was looking for a more robust solution, sure the SensorsTemperatures() works well with unix like devices, but you will need to handle if its a windows build(SensorsTemperatures() returns a empty array on Windows) or if termiboard is being run in a virtual machine, hence the difficulty of the feature.

DarthBenro008 avatar Sep 30 '20 20:09 DarthBenro008