From a06e7a5d6ecf1d2bd2685e4a18d44585fe019c6f Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Mon, 13 Jan 2020 11:16:34 +0100 Subject: [PATCH] Update nederlandse_spoorwegen.markdown (#11700) * Update nederlandse_spoorwegen.markdown Changes reflect this [PR](https://github.com/home-assistant/home-assistant/pull/30611) * :pencil2: Tweak * Fixed typo Co-Authored-By: Anders Melchiorsen Co-authored-by: Franck Nijhof Co-authored-by: Anders Melchiorsen --- .../nederlandse_spoorwegen.markdown | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/source/_integrations/nederlandse_spoorwegen.markdown b/source/_integrations/nederlandse_spoorwegen.markdown index e78091e404b..eb604ae37fa 100644 --- a/source/_integrations/nederlandse_spoorwegen.markdown +++ b/source/_integrations/nederlandse_spoorwegen.markdown @@ -10,16 +10,15 @@ 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`. +To obtain an API key, create an account on the [NS API-Portaal](https://apiportal.ns.nl/) and obtain an API key for the `RetrieveTripInformationPublicAPI` API. -Add the data to your `configuration.yaml` file as shown in the example: +The `nederlandse_spoorwegen` integration can be configured using `configuration.yaml` as shown below: ```yaml # Example configuration.yaml entry sensor: - platform: nederlandse_spoorwegen - email: you@example.com - password: !secret ns_password + api_key: NS_API_KEY routes: - name: Rotterdam-Amsterdam from: Rtd @@ -31,16 +30,12 @@ sensor: ``` {% configuration %} -email: - description: The email address you used to request the API password. - required: true - type: string -password: - description: The API password provided by the Nederlandse Spoorwegen. +api_key: + description: The API key provided by the Nederlandse Spoorwegen. required: true type: string routes: - description: List of traveling routes. + description: List of travel routes. required: false type: list keys: @@ -49,15 +44,15 @@ routes: required: true type: string from: - description: The start station. + description: The departure station. required: true type: string to: - description: Direction of the traveling. + description: The arrival station. required: true type: string via: - description: Optional other station you wish to visit in between. + description: A station the route needs to pass through. required: false type: string {% endconfiguration %}