From 66e4eeff1ba56c0803007d7bcdcff0ff516289e0 Mon Sep 17 00:00:00 2001 From: Holger Friedrich Date: Fri, 12 Apr 2024 18:57:06 +0200 Subject: [PATCH] [deutschebahn] Fix example and update links (#16645) * [deutschebahn] Fix example and update links Signed-off-by: Holger Friedrich Signed-off-by: Ciprian Pascu --- bundles/org.openhab.binding.deutschebahn/README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bundles/org.openhab.binding.deutschebahn/README.md b/bundles/org.openhab.binding.deutschebahn/README.md index 5ac7da83929..7f5a753286c 100644 --- a/bundles/org.openhab.binding.deutschebahn/README.md +++ b/bundles/org.openhab.binding.deutschebahn/README.md @@ -29,8 +29,9 @@ To configure a timetable you first need to register at Deutsche Bahn developer p ### Determine the EVA-No of your station -For the selection of the station within openHAB you need the eva no. of the station. -You can look up the number within the csv file available at [Haltestellendaten](https://data.deutschebahn.com/dataset.tags.EVA-Nr..html). +For the selection of the station within openHAB you need the eva no. of the station, i.e. a 7-digit number starting with 80 for Germany. +The station ID is no longer available on the Open Data portal of Deutsche Bahn. +You can look up the number at [www.michaeldittrich.de](https://www.michaeldittrich.de/ibnr/) or [in the CSV file](https://github.com/ratopi/haltestellendaten). ### Configure timetable bridge @@ -59,6 +60,7 @@ To specify an advanced filter you can - combine multiple statements as "and" conjunction by using `&`. If used, both parts must match, for example: `departure#line="RE60" & trip#category="WFB"` - combine multiple statements as "or" disjunction by using `|`. If used, one of the parts must match, for example: `departure#line="RE60" | departure#line="RE60"` - use brackets to build more complex queries like `trip#category="RE" AND (departure#line="17" OR departure#line="57")` +- remember to enclose the value in `""` in textual config, escape inner `"` with a backslash, e.g., `additionalFilter="departure#line=\"RE60\""` If a channel has multiple values, like the channels `arrival#planned-path` and `departure#planned-path` have a list of stations, only one of the values must match the given expression. So you can specify a filter like `departure#planned-path="Hannover Hbf"` @@ -138,9 +140,9 @@ Basically most information are available as planned and changed value. This allo timetable.things ```java -Bridge deutschebahn:timetable:timetableLehrte "Fahrplan Lehrte" [ accessToken="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", trainFilter="departures", evaNo="8000226" ] { - Thing deutschebahn:train:timetableLehrte:lehrteZug1 "Zug 1" [ position="1" ] - Thing deutschebahn:train:timetableLehrte:lehrteZug2 "Zug 2" [ position="2" ] +Bridge deutschebahn:timetable:timetableLehrte "Fahrplan Lehrte" [ clientId="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", clientSecret="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", trainFilter="departures", evaNo="8000226" ] { + Thing train lehrteZug1 "Zug 1" [ position="1" ] + Thing train lehrteZug2 "Zug 2" [ position="2" ] } ```