mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Update Gtfs sensor component configuration (#7272)
This commit is contained in:
parent
8040a30a01
commit
f2d3d90f6b
@ -13,7 +13,6 @@ ha_iot_class: "Local Polling"
|
||||
ha_release: 0.17
|
||||
---
|
||||
|
||||
|
||||
The `gtfs` sensor will give you the next departure time and associated data from your public transit station/stop. The data comes from your chosen public transit authority and is formatted as [General Transit Feed Specification](https://developers.google.com/transit/gtfs/) data, commonly known as GTFS.
|
||||
|
||||
You need to find a valid GTFS data set, which you can usually find just by searching the internet. Most public transit authorities have GTFS available somewhere, as Google requires public transit authorities to provide the data if they wish to appear on Google Maps. You may also be able to find data at either [TransitFeeds](http://transitfeeds.com/feeds) or [GTFS Data Exchange](http://www.gtfs-data-exchange.com/).
|
||||
@ -49,11 +48,27 @@ sensor:
|
||||
data: DATA_SOURCE
|
||||
```
|
||||
|
||||
Configuration variables:
|
||||
|
||||
- **origin** (*Required*): The stop ID of your origin station.
|
||||
- **destination** (*Required*): The stop ID of your destination station.
|
||||
- **data** (*Required*): The name of the ZIP file or folder containing the GTFS data. It must be located inside the `gtfs` folder of your configuration directory.
|
||||
- **name** (*Optional*): Name to use in the frontend.
|
||||
- **offset** (*Optional*): A minimum delay to look for. If a departure is in less time than `offset`, it will be ignored. Defaults to `0`.
|
||||
|
||||
{% configuration %}
|
||||
origin:
|
||||
description: The stop ID of your origin station.
|
||||
required: true
|
||||
type: string
|
||||
destination:
|
||||
description: The stop ID of your destination station.
|
||||
required: true
|
||||
type: string
|
||||
data:
|
||||
description: The name of the ZIP file or folder containing the GTFS data. It must be located inside the `gtfs` folder of your configuration directory.
|
||||
required: true
|
||||
type: string
|
||||
name:
|
||||
description: Name to use in the frontend.
|
||||
required: false
|
||||
default: GTFS Sensor
|
||||
type: string
|
||||
offset:
|
||||
description: A minimum delay to look for. If a departure is in less time than `offset`, it will be ignored.
|
||||
required: false
|
||||
default: 0
|
||||
type: [integer, time]
|
||||
{% endconfiguration %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user