NebraLtd / hm-diag

Helium Miner Diagnostics
https://nebra.io/hnt
MIT License
21 stars 23 forks source link

CPU temp now missing from Local Diagnostics Screen #485

Closed WayneNebra closed 1 year ago

WayneNebra commented 1 year ago

CPU temp now missing from Local Diagnostics Screen

cpu temp

shawaj commented 1 year ago

What fleet is this on @WayneNebra ?

I think this was a temporary issue that has been resolved.

And did it show on RockPi before?

WayneNebra commented 1 year ago

Oh sorry I should of posted more details about fleets etc. Noticed on the SB fleet this morning, funnily enough it's now gone, also on my RockPi and Outdoor that's in "Testnet" how ever just checked the Indoor 915 and 868 RockPi fleet and it's still missing.

I can check some more fleets and report back if you like?

shawaj commented 1 year ago

Could you share some links to some devices that have this issue on Balena, from different fleets/variants?

WayneNebra commented 1 year ago

Sure, here we go.

HELIUM-INDOOR-915-rockpi

https://dashboard.balena-cloud.com/devices/e7eda6ff7fd0dd0d65740308e66e7f8c

HELIUM-INDOOR-868-rockpi

https://dashboard.balena-cloud.com/devices/063bbca77864bdd476427a900ba9282b

HELIUM-TESTNET-ROCKPI

https://dashboard.balena-cloud.com/devices/6d181a5a9b5f9fc313f9872e5a39c644

shawaj commented 1 year ago

@robputt can you look at this when you can?

shawaj commented 1 year ago

@WayneNebra @robputt is this fixed now? Can we close it?

shawaj commented 1 year ago

https://psutil.readthedocs.io/en/latest/#psutil.sensors_temperatures

https://github.com/NebraLtd/hm-diag/blob/94b7acd3931ed5ee7535c73c7ea621ee0706050f/hw_diag/utilities/hardware.py#L339-L352

shawaj commented 1 year ago

RockPi seems to have soc-thermal for soc and gpu-thermal for gpu

shawaj commented 1 year ago

RockPi:

root@nebra-2D845E:/opt# python3
Python 3.11.1 (main, Dec  8 2022, 10:14:58) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.sensors_temperatures()
{'soc-thermal': [shwtemp(label='', current=43.333, high=0.00010499999999999999, critical=0.00010499999999999999)], 'gpu-thermal': [shwtemp(label='', current=43.888, high=None, critical=None)]}
>>> 

Raspi:

root@b9f3779ff641:/opt# python3
Python 3.11.1 (main, Dec  8 2022, 10:14:58) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.sensors_temperatures()
{'cpu_thermal': [shwtemp(label='', current=50.634, high=None, critical=None)]}
>>>