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

@ -89,25 +89,23 @@
<hr class="divider">
<p>The <code>uber</code> sensor will give you time and price estimates for all available <a href="https://uber.com">Uber</a> products at the given <code>start_latitude</code> and <code>start_longitude</code>.The <code>ATTRIBUTES</code> are used to provide extra information about products, such as estimated trip duration, distance and vehicle capacity. By default, 2 sensors will be created for each product at the given <code>start</code> location, one for pickup time and one for current price. The sensor is powered by the official Uber <a href="https://developer.uber.com/">API</a>.</p>
<p>The <code class="highlighter-rouge">uber</code> sensor will give you time and price estimates for all available <a href="https://uber.com">Uber</a> products at the given <code class="highlighter-rouge">start_latitude</code> and <code class="highlighter-rouge">start_longitude</code>.The <code class="highlighter-rouge">ATTRIBUTES</code> are used to provide extra information about products, such as estimated trip duration, distance and vehicle capacity. By default, 2 sensors will be created for each product at the given <code class="highlighter-rouge">start</code> location, one for pickup time and one for current price. The sensor is powered by the official Uber <a href="https://developer.uber.com/">API</a>.</p>
<p>You must create an application <a href="https://developer.uber.com/dashboard/create">here</a> to obtain a <code>server_token</code>.</p>
<p>You must create an application <a href="https://developer.uber.com/dashboard/create">here</a> to obtain a <code class="highlighter-rouge">server_token</code>.</p>
<p>To enable this sensor, add the following lines to your <code>configuration.yaml</code> file:</p>
<p>To enable this sensor, add the following lines 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">sensor</span>:
<span class="key">platform</span>: <span class="string"><span class="content">uber</span></span>
<span class="key">start_latitude</span>: <span class="string"><span class="content">37.8116380</span></span>
<span class="key">start_longitude</span>: <span class="string"><span class="content">-122.2648050</span></span>
<span class="key">end_latitude</span>: <span class="string"><span class="content">37.7768520</span></span>
<span class="key">end_longitude</span>: <span class="string"><span class="content">-122.4155500</span></span>
<span class="key">server_token</span>: <span class="string"><span class="content">'BeAPPTDsWZSHLf7fd9OWjZkIezweRw18Q8NltY27'</span></span>
<span class="key">product_ids</span>:
- <span class="string"><span class="content">'04a497f5-380d-47f2-bf1b-ad4cfdcb51f2'</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">sensor</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">uber</span>
<span class="s">start_latitude</span><span class="pi">:</span> <span class="s">37.8116380</span>
<span class="s">start_longitude</span><span class="pi">:</span> <span class="s">-122.2648050</span>
<span class="s">end_latitude</span><span class="pi">:</span> <span class="s">37.7768520</span>
<span class="s">end_longitude</span><span class="pi">:</span> <span class="s">-122.4155500</span>
<span class="s">server_token</span><span class="pi">:</span> <span class="s1">'</span><span class="s">BeAPPTDsWZSHLf7fd9OWjZkIezweRw18Q8NltY27'</span>
<span class="s">product_ids</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">04a497f5-380d-47f2-bf1b-ad4cfdcb51f2'</span>
</code></pre>
</div>
<p>Configuration variables:</p>
@ -115,8 +113,8 @@
<ul>
<li><strong>start_latitude</strong> (<em>Required</em>): The starting latitude for a trip.</li>
<li><strong>start_longitude</strong> (<em>Required</em>): The starting longitude for a trip.</li>
<li><strong>end_latitude</strong> (<em>Optional</em>): The ending latitude for a trip. While <code>end_latitude</code> is optional, it is strongly recommended to provide an <code>end_latitude</code>/<code>end_longitude</code> when possible as you will get more accurate price and time estimates.</li>
<li><strong>end_longitude</strong> (<em>Optional</em>): The ending longitude for a trip. While <code>end_longitude</code> is optional, it is strongly recommended to provide an <code>end_latitude</code>/<code>end_longitude</code> when possible as you will get more accurate price and time estimates.</li>
<li><strong>end_latitude</strong> (<em>Optional</em>): The ending latitude for a trip. While <code class="highlighter-rouge">end_latitude</code> is optional, it is strongly recommended to provide an <code class="highlighter-rouge">end_latitude</code>/<code class="highlighter-rouge">end_longitude</code> when possible as you will get more accurate price and time estimates.</li>
<li><strong>end_longitude</strong> (<em>Optional</em>): The ending longitude for a trip. While <code class="highlighter-rouge">end_longitude</code> is optional, it is strongly recommended to provide an <code class="highlighter-rouge">end_latitude</code>/<code class="highlighter-rouge">end_longitude</code> when possible as you will get more accurate price and time estimates.</li>
<li><strong>server_token</strong> (<em>Required</em>): A server token obtained from <a href="https://developer.uber.com">developer.uber.com</a> after <a href="https://developer.uber.com/dashboard/create">creating an app</a>.</li>
<li><strong>product_ids</strong> (<em>Options</em>): A list of Uber product UUIDs. If provided, sensors will only be created for the given product IDs. Please note that product IDs are region and some times even more specific geographies based. The easiest way to find a UUID is to click on a sensor in the Home Assistant frontend and look for “Product ID” in the attributes.</li>
</ul>