From d4add4f9529988815de68914b327f2ac5e4deee1 Mon Sep 17 00:00:00 2001 From: Menno Blom Date: Fri, 27 Oct 2017 22:20:26 +0200 Subject: [PATCH] Add support page for new nederlandse spoorwegen sensor (#3773) * Add support page for new nederlandse spoorwegen sensor * Rename departures to routes. --- .../sensor.nederlandse_spoorwegen.markdown | 51 ++++++++++++++++++ .../nederlandse_spoorwegen.png | Bin 0 -> 2223 bytes 2 files changed, 51 insertions(+) create mode 100644 source/_components/sensor.nederlandse_spoorwegen.markdown create mode 100644 source/images/supported_brands/nederlandse_spoorwegen.png diff --git a/source/_components/sensor.nederlandse_spoorwegen.markdown b/source/_components/sensor.nederlandse_spoorwegen.markdown new file mode 100644 index 00000000000..b4745a3fb65 --- /dev/null +++ b/source/_components/sensor.nederlandse_spoorwegen.markdown @@ -0,0 +1,51 @@ +--- +layout: page +title: "Nederlandse Spoorwegen" +description: "Instructions how to integrate timetable data for travelling by train in the Netherlands within Home Assistant." +date: 2017-10-25 13:35 +sidebar: true +comments: false +sharing: true +footer: true +logo: nederlandse_spoorwegen.png +ha_category: Transport +ha_iot_class: "Cloud Polling" +ha_release: "0.57" +--- + + +This sensor will provide you with time table information of the [Nederlandse Spoorwegen](https://www.ns.nl/) train service in the Netherlands. + +You must create an application [here](https://www.ns.nl/ews-aanvraagformulier/) to obtain a `password`. + +Add the data to your `configuration.yaml` file as shown in the example: + +```yaml +# Example configuration.yaml entry +sensor: +- platform: nederlandse_spoorwegen + email: you@example.com + password: !secret ns_password + routes: + - name: Rotterdam-Amsterdam + from: Rtd + to: Asd + - name: Groningen-Zwolle-Maastricht + from: Gn + to: Mt + via: Zl +``` + +Configuration variables: + +- **email** (*Required*): The email address you used to request the API password. +- **password** (*Required*): The API password provided by the Nederlandse Spoorwegen. +- **routes** array (*Required*): List of travelling routes. + - **name** (*Required*): Name of the route. + - **from** (*Required*): The start station. + - **to** (*Required*): Direction of the travelling. + - **via** (*Optional*): Optional other station you wish to visit in between. + +The data are coming from [Nederlandse Spoorwegen](https://www.ns.nl/). + +Station codes must be used and can be looked up [here](https://nl.wikipedia.org/wiki/Lijst_van_spoorwegstations_in_Nederland). diff --git a/source/images/supported_brands/nederlandse_spoorwegen.png b/source/images/supported_brands/nederlandse_spoorwegen.png new file mode 100644 index 0000000000000000000000000000000000000000..f18ddb15ed7f25460d46c2c58ce5b10244fccf56 GIT binary patch literal 2223 zcmZ`)2{fB&7ye9Dh^4f)8MNqhF(r~}M`b$xYDL5nOVLg>mQK|yE;nsI|5EE9rM{ByZ>Cn4xFnyr-s4iF%S0zuSm28ZCJL(t_d+;PhROpx-} z6nbugAcQ4w2$#ABLEA$>0Aau;UxdSs_f}e}O>NTIHGdtMHFc!d!h8TXm`ZoT4bw{FB_u*f?3 z@$A&cXg&Yvqfc&62IL-l98 z9B|7Q-XAwxF#PW58{u8Ds!C&6g|E+TVc#O0n zL4v|W79{*0uV!Lvm)KBn-~Ds?g`)4YDyf5cf>h+pbU=>EWUeq$us0++ZzWQ&lp8L{ zTXK=t9+Q;H>QGQNMv)_m@TJdV5eezL!gd<(O-kotFk$JGI+WSy*NW8v*-yCNvj!#h zN7c}}@g?%bB?nK@6A8TmU)tQLBq0OmN_P01;h!xlo41P^xpgct@grk`-Ff$LPG+;r zGoG(<*TJ_9R)sv2w3k{xMYSl0rB{u4u1=C0qTWWS_!*cPo~scj8rrxTx^`g7oi*Pw zU+HBAcFrg(wEd|_8%RB{R%*~Qku-YfhoN%C(gjCkqWw*!*)Mf5HY?(GrRJZ^Ss7Gj zN{wFqanyT?SH95K=#SAdQ&3~9t7MJ{~#UVgc^2TkF}?jREBTj!gfR-cCGO&ZeHBj1F|p*hTu+dUe{ zj-f0zm7b<9C}HP4!8v4jbB`_t8eF+qls(o|^P|3tm(u-YXBCS|lGAR_;d9R4hc!I# zwxC{o%wL~<8ck^?P7RHY(Von`*a)w4Y^)Eyt8h|w6dTcqXhFpeB?Y|`oPWIkDrbse zBe1>|H>|zjJAR*-P#L%Q>#{q3fqrTx2LN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