openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.88k stars 3.58k forks source link

[deutschebahn] Link to 404 in docs #16804

Open mueller-ma opened 4 months ago

mueller-ma commented 4 months ago

In the docs there's a link "Haltestellendaten" which leads to deutschebahn.de, but to a 404 page.

lsiepel commented 3 months ago

Would be nice if you can come up with a fixed link

mueller-ma commented 3 months ago

I found two websites:

  1. https://wiki.openstreetmap.org/w/images/c/c2/20141001_IBNR.pdf -> Trustworthy domain to link to, but the data is from 2014.
  2. https://www.michaeldittrich.de/ibnr/index.php -> From 2015 and you have to download a zip file

Which one would you prefer?

lsiepel commented 3 months ago

Ping @soenkekueper can you comment?

soenkekueper commented 3 months ago

I'm not really happy with both of them, because as mentioned, the data ist very old and the origin is not the DB itself. I would prefer (a larger) change: There is another DB api that provides information about stations, including the eva number. It provides a REST endpoint that allows searching by station name: https://developers.deutschebahn.com/db-api-marketplace/apis/product/stada/api/113501#/StaDaStationData_290/operation/%2Fstations/get

So i see two options here:

The first option is a little bit tricky, you've to register the app and know a bit about json, because the result is plain json. But it dosn't require addon changes.

The second is more convienient for openhab-users, but requires addon changes (does anything like this already exist?). The users must also register the api in db-portal so that openhab can use it.