From 8017f067618cb8315a62725b3ffa422abb3cc0ee Mon Sep 17 00:00:00 2001 From: Rami Mosleh Date: Tue, 30 Jan 2024 13:36:32 +0200 Subject: [PATCH] Add warning for deprecated Glances version (#30572) * Add warning for deprecated Glances version * Implement review feedback --------- Co-authored-by: c0ffeeca7 --- source/_integrations/glances.markdown | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/source/_integrations/glances.markdown b/source/_integrations/glances.markdown index 2b8d753e1f1..698ef3c3523 100644 --- a/source/_integrations/glances.markdown +++ b/source/_integrations/glances.markdown @@ -18,27 +18,17 @@ The `glances` integration allows you to monitor the system information provided ## Setup +
+ + Support for Glances api version 2 is deprecated. It is recommended to upgrade your Glances server to version 3. Once upgraded, reload the integration to connect again. + +
+ These sensors needs a running instance of `glances` on the host. The minimal supported version of `glances` is 2.3. -To start a Glances RESTful API server on its default port 61208 then test you can use the following command: - -```bash -$ sudo glances -w -Glances web server started on http://0.0.0.0:61208/ -``` - -Check if you are able to access the API located at `http://IP_ADRRESS:61208/api/3`. Don't use `-s` as this will start the XML-RPC server on port 61209. Home Assistant only supports the REST API of GLANCES. - -The details about your memory usage is provided as a JSON response. If so, you are good to proceed. - -```bash -$ curl -X GET http://IP_ADDRESS:61208/api/3/mem/free -{"free": 203943936} -``` - -If this doesn't work, try changing the `3` to `2`, if you don't have the latest version of Glances installed. For details about auto-starting `glances`, please refer to [Start Glances through Systemd](https://github.com/nicolargo/glances/wiki/Start-Glances-through-Systemd). + {% include integrations/config_flow.md %} ## Integration entities