Comments (8)
Will be corrected in Glances 4.0.7 (build ongoing)
from glances.
@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.
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.
Great, thanks for the quick fix!
from glances.
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.
Reproduced
from glances.
Idem with Glances 4.0.6/latest.
from glances.
I can confirm the issue is solved in 4.0.7
and latest
docker builds, thank you !
from glances.
Related Issues (20)
- Update the Grafana dashboard HOT 1
- GET /1272f6e9e8f9d6bfd6de.png results in 404 HOT 6
- Glances Web in Ubuntu 22.04 resulting in FastAPI error HOT 3
- docker latest still pulling 4.0.2 after 4.0.3 release HOT 7
- Add version of Glances on the page HOT 3
- Retire ujson for being in maintenance mode HOT 4
- cpu_hz_current not available on NetBSD HOT 4
- Home Assistant add-on doesn't work with 4.0 HOT 2
- No GPU info on Web View HOT 2
- [WIP] FastAPI import error. Glances cannot start in web server mode HOT 7
- FR:LVM support
- Add support for automatically hiding network interfaces that are down or that don't have any IP addresses HOT 3
- Reduce code complexity
- When Glances is installed via venv, default configuration file is not used HOT 1
- Unknown instance unknown? HOT 7
- arm64_v8The container status is not displayed HOT 1
- Give a try to Reflex to replace de WebUI by a pure Python implementation HOT 2
- Incorrect memory usage?
- Make CORS option configurable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glances.