openhab-addons/bundles/org.openhab.binding.publict...
lsiepel 3c075cbb2d
Improve meaningful links (#19155)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2025-08-17 15:25:38 +02:00
..
doc [publictransportswitzerland] Public Transport Switzerland Initial contribution (#8540) 2021-12-27 21:19:22 +01:00
src/main Bindings M thru R: Add equipment tags (#18558) 2025-04-23 17:20:30 +02:00
NOTICE [publictransportswitzerland] Public Transport Switzerland Initial contribution (#8540) 2021-12-27 21:19:22 +01:00
README.md Improve meaningful links (#19155) 2025-08-17 15:25:38 +02:00
pom.xml Spotless after release (#19002) 2025-07-21 20:21:58 +02:00

README.md

Public Transport Switzerland Binding

Connects to the "Swiss public transport API" to provide real-time public transport information. See the Swiss Public Transport API Documentation website.

For example, here is a station board in HABPanel. (Download the HABPanel Departure Board Example from GitHub)

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 the SBB official 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.