Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deutsche Bahn Binding - error "timetable.things" #16577

Closed
MA74SC opened this issue Mar 25, 2024 · 0 comments · Fixed by #16645
Closed

Deutsche Bahn Binding - error "timetable.things" #16577

MA74SC opened this issue Mar 25, 2024 · 0 comments · Fixed by #16645
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@MA74SC
Copy link

MA74SC commented Mar 25, 2024

Example file "timetable.things"
#1 wrong configuration
Parameter "accessToken="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" is not part of acutal bridge configuration.
#2 defining "additionalFilter" is not working as parameter is defined by "filter vale" , e.g. departure#line="RE60" alöready includes ""

old "timetable.things"
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" ]
}

Possible Solution

Modified as follow and bridge is working
new "timetable.things"
Bridge deutschebahn:timetable:timetableLehrte "Fahrplan Lehrte" [ clientSecret="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", clientId="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", trainFilter="departures", evaNo="8000226" ] {
Thing deutschebahn:train:timetableLehrte:lehrteZug1 "Zug 1" [ position="1" ]
Thing deutschebahn:train:timetableLehrte:lehrteZug2 "Zug 2" [ position="2" ]
}

Your Environment

  • Version used: openhab 4.1.2
  • running docker with repository openhab/openhab:latest-debian
  • Operating System UNRAID 6.12.8
@MA74SC MA74SC added the bug An unexpected problem or unintended behavior of an add-on label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant