Site updated at 2016-08-22 08:21:42 UTC

This commit is contained in:
Travis CI 2016-08-22 08:21:43 +00:00
parent f9d65cbe57
commit 4acb07bf8e
559 changed files with 18878 additions and 21688 deletions

View file

@ -91,23 +91,21 @@
<p>The pushetta platform uses <a href="http://www.pushetta.com">Pushetta</a> to delivery notifications from Home Assistant to your devices.</p>
<p>To enable Pushetta notifications in your installation, add the following to your <code>configuration.yaml</code> file:</p>
<p>To enable Pushetta notifications in your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
<span class="key">notify</span>:
<span class="key">name</span>: <span class="string"><span class="content">NOTIFIER_NAME</span></span>
<span class="key">platform</span>: <span class="string"><span class="content">pushetta</span></span>
<span class="key">api_key</span>: <span class="string"><span class="content">YOUR_API_KEY</span></span>
<span class="key">channel_name</span>: <span class="string"><span class="content">YOUR_CHANNEL_NAME</span></span>
</pre></div>
</div>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">notify</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">NOTIFIER_NAME</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">pushetta</span>
<span class="s">api_key</span><span class="pi">:</span> <span class="s">YOUR_API_KEY</span>
<span class="s">channel_name</span><span class="pi">:</span> <span class="s">YOUR_CHANNEL_NAME</span>
</code></pre>
</div>
<p>Configuration variables:</p>
<ul>
<li><strong>name</strong> (<em>Optional</em>): Setting the optional parameter <code>name</code> allows multiple notifiers to be created. The default value is <code>notify</code>. The notifier will bind to the service <code>notify.NOTIFIER_NAME</code>.</li>
<li><strong>name</strong> (<em>Optional</em>): Setting the optional parameter <code class="highlighter-rouge">name</code> allows multiple notifiers to be created. The default value is <code class="highlighter-rouge">notify</code>. The notifier will bind to the service <code class="highlighter-rouge">notify.NOTIFIER_NAME</code>.</li>
<li><strong>api_key</strong> (<em>Required</em>): Your API key for Pushetta.</li>
<li><strong>channel_name</strong> (<em>Required</em>): The name of your channel.</li>
</ul>
@ -116,14 +114,12 @@
<p>Its easy to test your Pushetta setup outside of Home Assistant. Assuming you have a channel <em>home-assistant</em>, just fire a request and check the channel page in the dashboard for a new message.</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre>curl -X POST \
-H &quot;Authorization: Token YOUR_API_KEY&quot; \
-H &quot;Content-Type: application/json&quot; \
-d &quot;{ \&quot;body\&quot; : \&quot;Hello World\&quot;, \&quot;message_type\&quot; : \&quot;text/plain\&quot; }&quot; \
<div class="language-bash highlighter-rouge"><pre class="highlight"><code>curl -X POST <span class="se">\</span>
-H <span class="s2">"Authorization: Token YOUR_API_KEY"</span> <span class="se">\</span>
-H <span class="s2">"Content-Type: application/json"</span> <span class="se">\</span>
-d <span class="s2">"{ </span><span class="se">\"</span><span class="s2">body</span><span class="se">\"</span><span class="s2"> : </span><span class="se">\"</span><span class="s2">Hello World</span><span class="se">\"</span><span class="s2">, </span><span class="se">\"</span><span class="s2">message_type</span><span class="se">\"</span><span class="s2"> : </span><span class="se">\"</span><span class="s2">text/plain</span><span class="se">\"</span><span class="s2"> }"</span> <span class="se">\</span>
http://api.pushetta.com/api/pushes/home-assistant/
</pre></div>
</div>
</code></pre>
</div>
<p>For further details, please check the <a href="http://pushetta.com/pushetta-api/">API</a>.</p>