Coder Social home page Coder Social logo

Comments (9)

shawaj avatar shawaj commented on August 29, 2024 1

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)]}
>>> 

from hm-diag.

shawaj avatar shawaj commented on August 29, 2024

What fleet is this on @WayneNebra ?

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

And did it show on RockPi before?

from hm-diag.

WayneNebra avatar WayneNebra commented on August 29, 2024

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?

from hm-diag.

shawaj avatar shawaj commented on August 29, 2024

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

from hm-diag.

WayneNebra avatar WayneNebra commented on August 29, 2024

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

from hm-diag.

shawaj avatar shawaj commented on August 29, 2024

@robputt can you look at this when you can?

from hm-diag.

shawaj avatar shawaj commented on August 29, 2024

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

from hm-diag.

shawaj avatar shawaj commented on August 29, 2024

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

def get_device_metrics():
try:
temperature = psutil.sensors_temperatures()['cpu_thermal'][0].current
except Exception:
temperature = 0
return {
'cpu': psutil.cpu_percent(),
'memory_total': psutil.virtual_memory().total,
'memory_used': psutil.virtual_memory().used,
'disk_total': psutil.disk_usage('/').total,
'disk_used': psutil.disk_usage('/').used,
'temperature': temperature
}

from hm-diag.

shawaj avatar shawaj commented on August 29, 2024

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

from hm-diag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.