From 66ef7d730ac92b4cec68498081f095dc86d49be2 Mon Sep 17 00:00:00 2001 From: linuxlurak Date: Sat, 22 Apr 2017 21:09:11 +0200 Subject: [PATCH] inserted important hint concering glances server config (#2400) * inserted important hint concering glance server config I think many users will stumble over the option to configure glance as webserver (-w) or server (-s). This will speed up your configuration time. * Merge details --- source/_components/sensor.glances.markdown | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/_components/sensor.glances.markdown b/source/_components/sensor.glances.markdown index 90ca9574419..f730b892e54 100644 --- a/source/_components/sensor.glances.markdown +++ b/source/_components/sensor.glances.markdown @@ -16,14 +16,17 @@ ha_release: 0.7.3 The `glances` sensor platform is consuming the system information provided by the [Glances](https://github.com/nicolargo/glances) API. This enables one to track remote host and display their stats in Home Assistant. -This sensors needs a running instance of `glances` on the host. The minimal supported version of `glances` is 2.3: +This 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, the a test the following command can be used: ```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/2`. The details about your memory usage is provided as a JSON response. If so, you are good to proceed. +Check if you are able to access the API located at `http://IP_ADRRESS:61208/api/2`. Don't use `-s` as this will start the XMLRPC 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/2/mem/free