Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get only the value of a sensor through the API #2619

Closed
Kuvesz opened this issue Dec 10, 2023 · 0 comments
Closed

Unable to get only the value of a sensor through the API #2619

Kuvesz opened this issue Dec 10, 2023 · 0 comments

Comments

@Kuvesz
Copy link

Kuvesz commented Dec 10, 2023

Description

Hi! This may be a stupid question but I'm not really sure how I'm supposed to get only the value field from a response like the one I posted below. Any help regarding this would be appreciated!

Versions

  • Glances & psutil versions: Glances v3.2.4.2 with PsUtil v5.8.0
  • Operating System: Debian 11
  • How do you install Glances (Pypi package, script, package manager, source): Using the docker image

Configuration and log file

curl http://localhost:61208/api/3/sensors/label/Composite

{"Composite": [{"label": "Composite", "value": 36, "warning": 74, "critical": 79, "unit": "C", "type": "temperature_core", "key": "label"}]}
Repository owner locked and limited conversation to collaborators Dec 10, 2023
@nicolargo nicolargo converted this issue into discussion #2623 Dec 10, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant