Open GeraldPape opened 1 year ago
@GeraldPape https://till.mabe.at derives the direction from the various source CSV files.
http://www.wienerlinien.at/ogd_realtime/doku/ogd/wienerlinien-ogd-fahrwegverlaeufe.csv Lists all stops for a line in both directions. The stop with the hightest "StopSeqCount" is the direction you are looking for.
https://www.wienerlinien.at/ogd_realtime/doku/ogd/wienerlinien-ogd-haltepunkte.csv
Lists all the stops which are referenced from wienerlinien-ogd-fahrwegverlaeufe.csv
.
https://www.wienerlinien.at/ogd_realtime/doku/ogd/wienerlinien-ogd-linien.csv
Lists all the lines which are referenced from wienerlinien-ogd-fahrwegverlaeufe.csv
.
More information: https://www.wienerlinien.at/ogd_realtime/doku/ogd/wienerlinien_ogd_Beschreibung.pdf
So with some extra-coding the UI could be enriched with line and direction. But a friendly name is always welcome.
PS:
Actually the UI could also show known issues for the lines of the monitored stop. See https://www.wienerlinien.at/ogd_realtime/doku/ogd/wienerlinien-echtzeitdaten-dokumentation.pdf
@tofuSCHNITZEL : I have create a PR that adds support for specific lines: https://github.com/tofuSCHNITZEL/home-assistant-wienerlinien/pull/18
By adding the line name to the stop IDs, the name of the sensors include the information about the line as well as the direction.
Example:
sensor:
- platform: wienerlinien
firstnext: first
stops:
- '1969/66A'
- '1945/66A'
- platform: wienerlinien
firstnext: next
stops:
- '1969/66A'
- '1945/66A'
This keeps existing configurations compatible and does not change anything for existing users.
Adding two stops with the same name (Reglergasse, 97A) I would like to add a friendly name including the direction.
Describe the solution you'd like either add support for friendly_name or an ID generation in the YAML so that a friendly name can be set in hte UI