mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-12 20:06:52 +00:00
Update nederlandse_spoorwegen.markdown (#11700)
* Update nederlandse_spoorwegen.markdown Changes reflect this [PR](https://github.com/home-assistant/home-assistant/pull/30611) * ✏️ Tweak * Fixed typo Co-Authored-By: Anders Melchiorsen <amelchio@nogoto.net> Co-authored-by: Franck Nijhof <frenck@frenck.nl> Co-authored-by: Anders Melchiorsen <amelchio@nogoto.net>
This commit is contained in:
parent
357a81d117
commit
a06e7a5d6e
@ -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.
|
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
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
- platform: nederlandse_spoorwegen
|
- platform: nederlandse_spoorwegen
|
||||||
email: you@example.com
|
api_key: NS_API_KEY
|
||||||
password: !secret ns_password
|
|
||||||
routes:
|
routes:
|
||||||
- name: Rotterdam-Amsterdam
|
- name: Rotterdam-Amsterdam
|
||||||
from: Rtd
|
from: Rtd
|
||||||
@ -31,16 +30,12 @@ sensor:
|
|||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
email:
|
api_key:
|
||||||
description: The email address you used to request the API password.
|
description: The API key provided by the Nederlandse Spoorwegen.
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
password:
|
|
||||||
description: The API password provided by the Nederlandse Spoorwegen.
|
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
routes:
|
routes:
|
||||||
description: List of traveling routes.
|
description: List of travel routes.
|
||||||
required: false
|
required: false
|
||||||
type: list
|
type: list
|
||||||
keys:
|
keys:
|
||||||
@ -49,15 +44,15 @@ routes:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
from:
|
from:
|
||||||
description: The start station.
|
description: The departure station.
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
to:
|
to:
|
||||||
description: Direction of the traveling.
|
description: The arrival station.
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
via:
|
via:
|
||||||
description: Optional other station you wish to visit in between.
|
description: A station the route needs to pass through.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user