Site updated at 2017-11-23 07:47:33 UTC
This commit is contained in:
parent
3267d159ee
commit
a8cf2ec28f
29 changed files with 103 additions and 76 deletions
|
@ -83,12 +83,24 @@
|
|||
<span class="s">mac</span><span class="pi">:</span> <span class="s">MAC_ADDRESS</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>Configuration variables:</p>
|
||||
<ul>
|
||||
<li><strong>host</strong> (<em>Required</em>): The IP address of your myStrom WiFi Bulb, eg. <code class="highlighter-rouge">192.168.1.32</code>.</li>
|
||||
<li><strong>mac</strong> (<em>Required</em>): The MAC address of your myStrom WiFi Bulb, eg. <code class="highlighter-rouge">5AAC8CA542F3</code>.</li>
|
||||
<li><strong>name</strong> (<em>Optional</em>): The name to use when displaying this light.</li>
|
||||
</ul>
|
||||
<div class="config-vars">
|
||||
<h3><a class="title-link" name="configuration-variables" href="#configuration-variables"></a> Configuration Variables</h3>
|
||||
<dl class="">
|
||||
<dt><a class="title-link" name="host" href="#host"></a> host</dt>
|
||||
<dd>
|
||||
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Required)</span><span class="description">The IP address of your myStrom WiFi Bulb, e.g., <code class="highlighter-rouge">192.168.1.32</code>.</span></p>
|
||||
</dd>
|
||||
<dt><a class="title-link" name="mac" href="#mac"></a> mac</dt>
|
||||
<dd>
|
||||
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Required)</span><span class="description">The MAC address of your myStrom WiFi Bulb, e.g., <code class="highlighter-rouge">5AAC8CA542F3</code>.</span></p>
|
||||
</dd>
|
||||
<dt><a class="title-link" name="name" href="#name"></a> name</dt>
|
||||
<dd>
|
||||
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">The name to use when displaying this bulb.</span></p>
|
||||
<p class="default">Default value: myStrom Bulb</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>Check if you are able to access the light located at <code class="highlighter-rouge">IP_ADRRESS</code>. The details about your light is provided as a JSON response.</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>curl http://[IP_ADDRESS]/api/v1/device/[MAC_ADDRESS]
|
||||
|
||||
|
|
|
@ -82,11 +82,20 @@
|
|||
<span class="s">host</span><span class="pi">:</span> <span class="s">IP_ADRRESS</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>Configuration variables:</p>
|
||||
<ul>
|
||||
<li><strong>host</strong> (<em>Required</em>): The IP address of your myStrom switch, eg. <code class="highlighter-rouge">http://192.168.1.32</code>.</li>
|
||||
<li><strong>name</strong> (<em>Optional</em>): The name to use when displaying this switch.</li>
|
||||
</ul>
|
||||
<div class="config-vars">
|
||||
<h3><a class="title-link" name="configuration-variables" href="#configuration-variables"></a> Configuration Variables</h3>
|
||||
<dl class="">
|
||||
<dt><a class="title-link" name="host" href="#host"></a> host</dt>
|
||||
<dd>
|
||||
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Required)</span><span class="description">The IP address of your myStrom switch, e.g., <code class="highlighter-rouge">http://192.168.1.32</code>.</span></p>
|
||||
</dd>
|
||||
<dt><a class="title-link" name="name" href="#name"></a> name</dt>
|
||||
<dd>
|
||||
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">The name to use when displaying this switch.</span></p>
|
||||
<p class="default">Default value: myStrom Switch</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>Check if you are able to access the device located at <code class="highlighter-rouge">http://IP_ADRRESS</code>. The details about your switch is provided as a JSON response.</p>
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>curl -X GET -H <span class="s2">"Content-Type: application/json"</span> http://IP_ADDRESS/report
|
||||
<span class="o">{</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue