openhab-addons/bundles/org.openhab.binding.publictransportswitzerland
Jacob Laursen 92145428df Update license headers to 2024 (#16168)
* Update copyright year in configuration
* Update license headers
* Manually update nibeheatpump headers (.cpp/.h/.ino)
* Manually update smsmodem header
* Manually update hueemulation header
* Manually update addon-header.xml header

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:23 +02:00
..
doc
src/main Update license headers to 2024 (#16168) 2025-01-02 09:48:23 +02:00
NOTICE
pom.xml Apply spotless after release (#16097) 2023-12-22 23:30:38 +01:00
README.md [Documentation] Markdown improvements n to s (#13948) 2022-12-14 16:52:43 +01:00

Public Transport Switzerland Binding

Connects to the "Swiss public transport API" to provide real-time public transport information. Link to the API

For example, here is a station board in HABPanel. (Download here)

Departure board in HABPanel

Supported Things

Stationboard

Upcoming departures for a single station. This is what you would usually see displayed at the train station.

Channels

channel type description
departures#n String A dynamic channel for each upcoming departure
tsv (advanced) String A tsv which contains the fields:
identifier, departureTime, destination, track, delay

UI based Configuration

station is the station name for which to display departures.
The name has to be one that is used by the swiss federal railways.
Please consult their website.

Textual configuration

Thing
Thing publictransportswitzerland:stationboard:zurich [ station="Zürich HB" ]
Items
String Next_Departure             "Next Departure"             { channel="publictransportswitzerland:stationboard:zurich:departures#1" }
String Upcoming_Departures_TSV    "Upcoming_Departures_TSV"    { channel="publictransportswitzerland:stationboard:zurich:tsv" }

Discovery

This binding does not support auto-discovery.