Read the statement by Michael Teeuw here.
Deutsche Bahn Delay
-
Hi, is there any chance for a module: Station/Next Trains + Delay for German Deutsche Bahn? Like this: mobil.bahn.de/bin/query.exe/dox?S=8000318&Z=8003395&start=1&rt=1&time=16:54
Thanks, Mathias
-
I don’t think that’s possible. Deutsche Bahn provides an API, though currently only for long-distance trains and without any information on delays.
-
I also wanted to have a module like this displaying the actual delays for my trains to catch.
What seems like the only solution would be to scrape the URL from above (http://mobil.bahn.de/bin/query.exe/dox?S=8000318&Z=8003395&start=1&rt=1), but without the time attribut. Just cut out the interesting part and put it in a module.seems doable, but i don’t have the JS-Background, I’m afraid.
-
You could use the API by the local organization unit, which is VRR for instance.
I wrote something about the VRR-Routing, which possibly may work for other Locations (At leat in NRW):
https://forum.magicmirror.builders/topic/1281/deutsche-bahn-list-of-connections-with-delays/3