fluffykraken / bvg-sensor

provides the time in minutes until the next departure
The Unlicense
17 stars 12 forks source link

query BVG/VBB APIs directly #5

Open derhuerst opened 4 years ago

derhuerst commented 4 years ago

While I intend to keep *.transport.rest up, it would be better if this integration would query the upstream BVG/VBB APIs behind *.transport.rest directly.

I elaborated at https://github.com/kennell/schiene/issues/1#issuecomment-445468008, how you could use hafas-client from Python.

Let me know if this is an option.

derhuerst commented 4 years ago

Advantages:

Disadvantages:

derhuerst commented 3 years ago

The situation has changed a bit, I recommend to keep using my wrapper APIs for now.

But: 1.bvg.transport.rest is shut off, the latest version of the API is v5.bvg.transport.rest.

tobias-richter commented 3 years ago

@derhuerst I think the bvg_sensor is not actively maintained at the moment. I had opened a PR with a fix for 2.bvg.transport.rest in April 2020 and it got no attention (https://github.com/fluffykraken/bvg-sensor/pull/6). I have just created a PR with a "hotfix" for v5.bvg.transport.rest (https://github.com/fluffykraken/bvg-sensor/pull/7). Sadly I have not the time to implement the usage of your wrapper at the moment.