Site updated at 2017-11-05 13:37:30 UTC

This commit is contained in:
Travis CI 2017-11-05 13:37:30 +00:00
parent d36b0e5706
commit 280d7b0d79
28 changed files with 116 additions and 77 deletions

View file

@ -81,18 +81,56 @@
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">rpi_camera</span>
</code></pre>
</div>
<p>Configuration variables:</p>
<ul>
<li><strong>name</strong> (<em>Optional</em>): Name of the camera</li>
<li><strong>image_width</strong> (<em>Optional</em>): Set the image width (default: 640)</li>
<li><strong>image_height</strong> (<em>Optional</em>): Set the image height (default: 480)</li>
<li><strong>image_quality</strong> (<em>Optional</em>): Set the image quality (from 0 to 100, default: 7)</li>
<li><strong>image_rotation</strong> (<em>Optional</em>): Set image rotation (0-359, default: 0)</li>
<li><strong>horizontal_flip</strong> (<em>Optional</em>): Set horizontal flip (0 to disable, 1 to enable, default: 0)</li>
<li><strong>vertical_flip</strong> (<em>Optional</em>): Set vertical flip (0 to disable, 1 to enable, default: 0)</li>
<li><strong>timelapse</strong> (<em>Optional</em>): Takes a picture every ms (default: 1000)</li>
<li><strong>file_path</strong> (<em>Optional</em>): Save the picture in a custom file path (default: camera components folder)</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="image_width" href="#image_width"></a> image_width</dt>
<dd>
<p class="desc"><span class="type">(<span class="int">int</span>)</span><span class="required">(Optional)</span><span class="description">Set the image width.</span></p>
<p class="default">Default value: 640</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">Name of the camera.</span></p>
<p class="default">Default value: Raspberry Pi Camera</p>
</dd>
<dt><a class="title-link" name="image_height" href="#image_height"></a> image_height</dt>
<dd>
<p class="desc"><span class="type">(<span class="int">int</span>)</span><span class="required">(Optional)</span><span class="description">Set the image height.</span></p>
<p class="default">Default value: 480</p>
</dd>
<dt><a class="title-link" name="image_quality" href="#image_quality"></a> image_quality</dt>
<dd>
<p class="desc"><span class="type">(<span class="int">int</span>)</span><span class="required">(Optional)</span><span class="description">Set the image quality (from 0 to 100).</span></p>
<p class="default">Default value: 7</p>
</dd>
<dt><a class="title-link" name="image_rotation" href="#image_rotation"></a> image_rotation</dt>
<dd>
<p class="desc"><span class="type">(<span class="int">int</span>)</span><span class="required">(Optional)</span><span class="description">Set image rotation (0-359).</span></p>
<p class="default">Default value: 0</p>
</dd>
<dt><a class="title-link" name="horizontal_flip" href="#horizontal_flip"></a> horizontal_flip</dt>
<dd>
<p class="desc"><span class="type">(<span class="int">int</span>)</span><span class="required">(Optional)</span><span class="description">Set horizontal flip (0 to disable, 1 to enable).</span></p>
<p class="default">Default value: 0</p>
</dd>
<dt><a class="title-link" name="vertical_flip" href="#vertical_flip"></a> vertical_flip</dt>
<dd>
<p class="desc"><span class="type">(<span class="int">int</span>)</span><span class="required">(Optional)</span><span class="description">Set vertical flip (0 to disable, 1 to enable).</span></p>
<p class="default">Default value: 0</p>
</dd>
<dt><a class="title-link" name="timelapse" href="#timelapse"></a> timelapse</dt>
<dd>
<p class="desc"><span class="type">(<span class="int">int</span>)</span><span class="required">(Optional)</span><span class="description">Takes a picture every millisecond.</span></p>
<p class="default">Default value: 1000</p>
</dd>
<dt><a class="title-link" name="file_path" href="#file_path"></a> file_path</dt>
<dd>
<p class="desc"><span class="type">(<span class="string">string</span>)</span><span class="required">(Optional)</span><span class="description">Save the picture in a custom file path.</span></p>
<p class="default">Default value: The camera components folder.</p>
</dd>
</dl>
</div>
<p>The given <strong>file_path</strong> must be an existing file because the camera platform setup make a writeable check on it.</p>
</article>
</div>

View file

@ -137,6 +137,7 @@
</tr>
</tbody>
</table>
<p>The <code class="highlighter-rouge">filename</code> must be an entry in the <code class="highlighter-rouge">whitelist_external_dirs</code> in your <a href="/docs/configuration/basic/"><code class="highlighter-rouge">homeassistant:</code></a> section of your <code class="highlighter-rouge">configuration.yaml</code> file.</p>
<h3><a class="title-link" name="test-if-it-works" href="#test-if-it-works"></a> Test if it works</h3>
<p>A simple way to test if you have set up your <code class="highlighter-rouge">camera</code> platform correctly, is to use <img src="/images/screenshots/developer-tool-services-icon.png" alt="service developer tool icon" class="no-shadow" height="38" /> <strong>Services</strong> from the <strong>Developer Tools</strong>. Choose your service from the dropdown menu <strong>Service</strong>, enter something like the sample below into the <strong>Service Data</strong> field, and hit <strong>CALL SERVICE</strong>.</p>
<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">{</span><span class="w">

View file

@ -88,7 +88,7 @@ If you see an “Unable to connect” message, restart the gateway and try again
<p>Configuration variables:</p>
<ul>
<li><strong>host</strong> (<em>Required</em>): The IP address or hostname of your Trådfri gateway.</li>
<li><strong>allow_tradfri_groups</strong> (<em>Optional</em>): Enable this to stop Home Assistant from importing the groups defined on the Trådfri bridge. Defaults to <code class="highlighter-rouge">true</code>.</li>
<li><strong>allow_tradfri_groups</strong> (<em>Optional</em>): Set this to <code class="highlighter-rouge">false</code> to stop Home Assistant from importing the groups defined on the Trådfri bridge. Defaults to <code class="highlighter-rouge">true</code>.</li>
</ul>
<p class="note">
Do not use the <code class="highlighter-rouge">api_key</code> variable. The key is only needed once at initial setup.