Giter Club home page Giter Club logo

Comments (8)

nicolargo avatar nicolargo commented on June 10, 2024 1

Will be corrected in Glances 4.0.7 (build ongoing)

from glances.

RazCrimson avatar RazCrimson commented on June 10, 2024

@wittypluck
Sorry the issue got auto closed by merging the PR.

The fixes should work fine. But could you just give the dev images a test and see if the data API works fine for you?

from glances.

nicolargo avatar nicolargo commented on June 10, 2024

Fixes work fine:

./venv/bin/python -m glances --stdout-json sensors
sensors: [{"label":"CPU","unit":"C","value":50,"warning":0,"critical":null,"type":"temperature_core","key":"label"},{"label":"Core Pkg","unit":"C","value":52,"warning":100,"critical":100,"type":"temperature_core","key":"label"},{"label":"HDD","unit":"C","value":30,"warning":0,"critical":null,"type":"temperature_core","key":"label"},{"label":"NVME","unit":"C","value":28,"warning":82,"critical":84,"type":"temperature_core","key":"label"},{"label":"SODIMM","unit":"C","value":32,"warning":0,"critical":null,"type":"temperature_core","key":"label"},{"label":"Wifi","unit":"C","value":25,"warning":null,"critical":null,"type":"temperature_core","key":"label"},{"label":"CPU Fan","unit":"R","value":0,"warning":null,"critical":null,"type":"fan_speed","key":"label"},{"label":"Video Fan","unit":"R","value":0,"warning":null,"critical":null,"type":"fan_speed","key":"label"},{"label":"Battery","value":32,"unit":"%","status":"Charging","type":"battery","key":"label"}]
sensors: [{"label":"CPU","unit":"C","value":50,"warning":0,"critical":null,"type":"temperature_core","key":"label"},{"label":"Core Pkg","unit":"C","value":52,"warning":100,"critical":100,"type":"temperature_core","key":"label"},{"label":"HDD","unit":"C","value":30,"warning":0,"critical":null,"type":"temperature_core","key":"label"},{"label":"NVME","unit":"C","value":28,"warning":82,"critical":84,"type":"temperature_core","key":"label"},{"label":"SODIMM","unit":"C","value":32,"warning":0,"critical":null,"type":"temperature_core","key":"label"},{"label":"Wifi","unit":"C","value":25,"warning":null,"critical":null,"type":"temperature_core","key":"label"},{"label":"CPU Fan","unit":"R","value":0,"warning":null,"critical":null,"type":"fan_speed","key":"label"},{"label":"Video Fan","unit":"R","value":0,"warning":null,"critical":null,"type":"fan_speed","key":"label"},{"label":"Battery","value":32,"unit":"%","status":"Charging","type":"battery","key":"label"}]

from glances.

wittypluck avatar wittypluck commented on June 10, 2024

Great, thanks for the quick fix!

from glances.

wittypluck avatar wittypluck commented on June 10, 2024

The fix seemed to be included in the 4.0.5 release notes so I tested via my docker install of glances.
The fix works fine on dev tag, but is not present in the 4.0.5 tag or latest tag.
Maybe a packaging issue ?

Tag dev:

$ curl http://localhost:61208/api/4/version
"4.1.0_beta01"
$ curl http://localhost:61208/api/4/sensors
[{"label":"cpu_thermal 0","unit":"C","value":49,"warning":110,"critical":110,"type":"temperature_core","key":"label"}]

Tag latest or 4.0.5:

$ curl http://localhost:61208/api/4/version
"4.0.5"
$ curl http://localhost:61208/api/4/sensors
[{"label":"cpu_thermal 0","unit":"C","value":49,"warning":110,"critical":110,"type":"SensorType.CPU_TEMP","key":"label"}]

from glances.

RazCrimson avatar RazCrimson commented on June 10, 2024

Reproduced

from glances.

nicolargo avatar nicolargo commented on June 10, 2024

Idem with Glances 4.0.6/latest.

from glances.

wittypluck avatar wittypluck commented on June 10, 2024

I can confirm the issue is solved in 4.0.7 and latest docker builds, thank you !

from glances.

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.