From b4ed2e2acc2ed1f3f6a4fdd4df696c771643e6b3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 2 Jun 2015 21:47:32 +0200 Subject: [PATCH 1/2] add page for the swiss public transport sensor --- .../sensor.swiss_public_transport.markdown | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 source/components/sensor.swiss_public_transport.markdown diff --git a/source/components/sensor.swiss_public_transport.markdown b/source/components/sensor.swiss_public_transport.markdown new file mode 100644 index 00000000000..af9f4e437d0 --- /dev/null +++ b/source/components/sensor.swiss_public_transport.markdown @@ -0,0 +1,29 @@ +--- +layout: page +title: "Swiss Public Transport support" +description: "Instructions how to integrate timetable data for travelling in Switzerland within Home Assistant." +date: 2015-06-02 21:45 +sidebar: false +comments: false +sharing: true +footer: true +--- + +The swiss public transport sensor will give you the next two departure times from a given location to another one in Switzerland. + +The [Stationboard](http://transport.opendata.ch/examples/stationboard.html) 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: + +http://transport.opendata.ch/v1/locations?query=[Station name] + +If the score is 100 ("score":"100" in the response), it is a perfect match. Then add the data to your `configuration.yaml` file as shown in the example: + +```yaml +# Example configuration.yaml entry +sensor: + platform: swiss_public_transport + from: STATION_ID + to: STATION_ID + +``` + +The public timetables are coming from [Swiss public transport](http://transport.opendata.ch). From f08e47ff80e8bbb03e88165dfc22ef006fd94a89 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 2 Jun 2015 22:02:05 +0200 Subject: [PATCH 2/2] add entry for swiss public transport sensor --- source/components/index.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/components/index.markdown b/source/components/index.markdown index 9a87633a9c7..d91c44291bc 100644 --- a/source/components/index.markdown +++ b/source/components/index.markdown @@ -243,6 +243,12 @@ the manufacturers of these devices. Display details about the Bitcoin Network and your Blockchain.info online wallet. + + +Swiss Public Transport +Display timetable data for traveling in Switzerland. + + Time & Date