Site updated at 2016-08-22 08:21:42 UTC
This commit is contained in:
parent
f9d65cbe57
commit
4acb07bf8e
559 changed files with 18878 additions and 21688 deletions
|
@ -89,29 +89,27 @@
|
|||
<hr class="divider">
|
||||
|
||||
|
||||
<p>The <code>twitter</code> platform uses <a href="https://twitter.com">Twitter</a> to delivery notifications from Home Assistant.</p>
|
||||
<p>The <code class="highlighter-rouge">twitter</code> platform uses <a href="https://twitter.com">Twitter</a> to delivery notifications from Home Assistant.</p>
|
||||
|
||||
<p>Go to <a href="https://apps.twitter.com/app/new">Twitter Apps</a> and create an application. Visit “Keys and Access Tokens” of the application to get the details (“Consumer Key”, “Consumer Secret”, “Access Token” and “Access Token Secret” which needs to be generated).</p>
|
||||
|
||||
<p>To add Twitter to your installation, add the following to your <code>configuration.yaml</code> file:</p>
|
||||
<p>To add Twitter to 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">twitter</span></span>
|
||||
<span class="key">consumer_key</span>: <span class="string"><span class="content">ABCDEFGHJKLMNOPQRSTUVXYZ</span></span>
|
||||
<span class="key">consumer_secret</span>: <span class="string"><span class="content">ABCDEFGHJKLMNOPQRSTUVXYZ</span></span>
|
||||
<span class="key">access_token</span>: <span class="string"><span class="content">ABCDEFGHJKLMNOPQRSTUVXYZ</span></span>
|
||||
<span class="key">access_token_secret</span>: <span class="string"><span class="content">ABCDEFGHJKLMNOPQRSTUVXYZ</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">twitter</span>
|
||||
<span class="s">consumer_key</span><span class="pi">:</span> <span class="s">ABCDEFGHJKLMNOPQRSTUVXYZ</span>
|
||||
<span class="s">consumer_secret</span><span class="pi">:</span> <span class="s">ABCDEFGHJKLMNOPQRSTUVXYZ</span>
|
||||
<span class="s">access_token</span><span class="pi">:</span> <span class="s">ABCDEFGHJKLMNOPQRSTUVXYZ</span>
|
||||
<span class="s">access_token_secret</span><span class="pi">:</span> <span class="s">ABCDEFGHJKLMNOPQRSTUVXYZ</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>consumer_key</strong> (<em>Required</em>): Your “Consumer Key” (API Key) for the application.</li>
|
||||
<li><strong>consumer_secret</strong> (<em>Required</em>): Your “Consumer Secret” (API Secret) for the application.</li>
|
||||
<li><strong>access_token</strong> (<em>Required</em>): Your “Access Token” for the application.</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue