Site updated at 2017-03-31 19:56:39 UTC

This commit is contained in:
Travis CI 2017-03-31 19:56:39 +00:00
parent 06efddca2c
commit b64ca9095c
26 changed files with 70 additions and 39 deletions

View file

@ -94,6 +94,7 @@
<span class="s">currency</span><span class="pi">:</span> <span class="s">$</span>
<span class="pi">-</span> <span class="s">type</span><span class="pi">:</span> <span class="s">amount</span>
<span class="s">period</span><span class="pi">:</span> <span class="s">day</span>
<span class="pi">-</span> <span class="s">type</span><span class="pi">:</span> <span class="s">current_values</span>
</code></pre>
</div>
<p>Configuration variables:</p>
@ -109,6 +110,7 @@ negative number of minutes your timezone is ahead/behind UTC time.</li>
<li><strong>budget</strong>: Monthly budget.</li>
<li><strong>cost</strong>: The cost for energy consumption (with the tariff that has been set in Efergy) over a given period.</li>
<li><strong>amount</strong>: The amount of energy consumed over a given period.</li>
<li><strong>current_values</strong>: This returns the current energy usage of each device on your account, as efergy_&lt;sid of device&gt;. If you only have one device in your account, this is effectively the same as instant_readings.</li>
</ul>
</li>
<li><strong>period</strong> (<em>Optional</em>): Some variables take a period argument. Valid options are “day”, “week”, “month”, and “year”.</li>

View file

@ -66,7 +66,7 @@
</h1>
</header>
<hr class="divider">
<p>The <code class="highlighter-rouge">yweather</code> platform uses <a href="https://www.yahoo.com/news/weather/">Yahoo Weather</a> as an source for current meteorological data. The <code class="highlighter-rouge">forecast</code> will show you the condition for 5 days, 0 is the current day. You can use only <code class="highlighter-rouge">weather</code>, <code class="highlighter-rouge">temp_min</code>, and <code class="highlighter-rouge">temp_max</code> with forecast.</p>
<p>The <code class="highlighter-rouge">yweather</code> platform uses <a href="https://www.yahoo.com/news/weather/">Yahoo Weather</a> as an source for current meteorological data. The <code class="highlighter-rouge">forecast</code> will show you the condition for 5 days, 0 is the current day. You can use only <code class="highlighter-rouge">weather</code>, <code class="highlighter-rouge">temp_min</code>, and <code class="highlighter-rouge">temp_max</code> with forecast. Its important to note that a yweather sensor will only show ONE days forecast at a time so to show multiple days forecasts, you will need to use the name: option and give each sensor a unique name.</p>
<p class="note warning">
Use of the Yahoo Weather API should not exceed reasonable request volume. Access is limited to 2,000 signed calls per day.
</p>
@ -106,6 +106,35 @@ Use of the Yahoo Weather API should not exceed reasonable request volume. Access
</ul>
</li>
</ul>
<p>Example of forecast using multiple days. In example, first sensor shows tomorrows forecast, second sensor shows the next day and so on:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">sensor</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">yweather</span>
<span class="s">forecast</span><span class="pi">:</span> <span class="s">1</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">yw_day1</span>
<span class="s">monitored_conditions</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">weather</span>
<span class="pi">-</span> <span class="s">temp_min</span>
<span class="pi">-</span> <span class="s">temp_max</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">yweather</span>
<span class="s">forecast</span><span class="pi">:</span> <span class="s">2</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">yw_day2</span>
<span class="s">monitored_conditions</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">weather</span>
<span class="pi">-</span> <span class="s">temp_min</span>
<span class="pi">-</span> <span class="s">temp_max</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">yweather</span>
<span class="s">forecast</span><span class="pi">:</span> <span class="s">3</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">yw_day3</span>
<span class="s">monitored_conditions</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">weather</span>
<span class="pi">-</span> <span class="s">temp_min</span>
<span class="pi">-</span> <span class="s">temp_max</span>
</code></pre>
</div>
<p>Details about the API are available in the <a href="https://developer.yahoo.com/weather/">Yahoo! Developer Network</a>.</p>
</article>
</div>