Site updated at 2017-04-22 19:16:50 UTC

This commit is contained in:
Travis CI 2017-04-22 19:16:50 +00:00
parent 7ab6214755
commit 392dc03f67
26 changed files with 121 additions and 40 deletions

View file

@ -67,12 +67,14 @@
</header>
<hr class="divider">
<p>The <code class="highlighter-rouge">glances</code> sensor platform is consuming the system information provided by the <a href="https://github.com/nicolargo/glances">Glances</a> API. This enables one to track remote host and display their stats in Home Assistant.</p>
<p>This sensors needs a running instance of <code class="highlighter-rouge">glances</code> on the host. The minimal supported version of <code class="highlighter-rouge">glances</code> is 2.3:</p>
<p>This sensors needs a running instance of <code class="highlighter-rouge">glances</code> on the host. The minimal supported version of <code class="highlighter-rouge">glances</code> is 2.3.
To start a Glances RESTful API server on its default port 61208, the a test the following command can be used:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>sudo glances -w
Glances web server started on http://0.0.0.0:61208/
</code></pre>
</div>
<p>Check if you are able to access the API located at <code class="highlighter-rouge">http://IP_ADRRESS:61208/api/2</code>. The details about your memory usage is provided as a JSON response. If so, you are good to proceed.</p>
<p>Check if you are able to access the API located at <code class="highlighter-rouge">http://IP_ADRRESS:61208/api/2</code>. Dont use <code class="highlighter-rouge">-s</code> as this will start the XMLRPC server on port 61209. Home Assistant only supports the REST API of GLANCES.</p>
<p>The details about your memory usage is provided as a JSON response. If so, you are good to proceed.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>curl -X GET http://IP_ADDRESS:61208/api/2/mem/free
<span class="o">{</span><span class="s2">"free"</span>: 203943936<span class="o">}</span>
</code></pre>