mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 05:16:49 +00:00
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
This commit is contained in:
parent
7413b900f4
commit
66ef7d730a
@ -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.
|
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
|
```bash
|
||||||
$ sudo glances -w
|
$ sudo glances -w
|
||||||
Glances web server started on http://0.0.0.0:61208/
|
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
|
```bash
|
||||||
$ curl -X GET http://IP_ADDRESS:61208/api/2/mem/free
|
$ curl -X GET http://IP_ADDRESS:61208/api/2/mem/free
|
||||||
|
Loading…
x
Reference in New Issue
Block a user