Site updated at 2017-09-23 06:14:30 UTC
This commit is contained in:
parent
a675f41451
commit
9961fbdbbd
731 changed files with 9664 additions and 2684 deletions
|
@ -74,10 +74,10 @@
|
|||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
<p>The <code class="highlighter-rouge">swiss_public_transport</code> sensor will give you the next two departure times from a given location to another one in Switzerland.</p>
|
||||
<p>The <a href="http://transport.opendata.ch/examples/stationboard.html">Stationboard</a> website can help to determine the exact name of the start and the end station. With the station names it’s necessary to search for the ID of those stations:</p>
|
||||
<p>http://transport.opendata.ch/v1/locations?query=[Station name]</p>
|
||||
<p>If the score is 100 (“score”:”100” in the response), it is a perfect match. Then add the data to your <code class="highlighter-rouge">configuration.yaml</code> file as shown in the example:</p>
|
||||
<p>The <code class="highlighter-rouge">swiss_public_transport</code> sensor will give you the next three departure times from a given location to another one in Switzerland.</p>
|
||||
<p>The <a href="http://transport.opendata.ch/">Swiss public transport API</a> only allows 1000 requests per 24 hours.</p>
|
||||
<p>The <a href="http://transport.opendata.ch/examples/stationboard.html">Stationboard</a> website can help to determine the exact name of the start and the end station.</p>
|
||||
<p>Then add the data to your <code class="highlighter-rouge">configuration.yaml</code> file as shown in the example:</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">swiss_public_transport</span>
|
||||
|
@ -89,6 +89,7 @@
|
|||
<ul>
|
||||
<li><strong>from</strong> (<em>Required</em>): The ID of the station of the start station.</li>
|
||||
<li><strong>to</strong> (<em>Required</em>): The ID of the station of the end station.</li>
|
||||
<li><strong>name</strong> (<em>Optional</em>): The name of the sensor. Defaults to ‘Next Departure’.</li>
|
||||
</ul>
|
||||
<p>The public timetables are coming from <a href="http://transport.opendata.ch">Swiss public transport</a>.</p>
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue