hasl-sensor / integration

Swedish Public Transport Sensor (HASL). Formerly named HomeAssistant SL Sensor
https://hasl.sorlov.com
Apache License 2.0
36 stars 8 forks source link

New SL APIs #68

Open systemcrash opened 8 months ago

systemcrash commented 8 months ago

Worth mentioning that the trafiklab has this announcement, and they're sunsetting older APIs end 2024.03.30

https://www.trafiklab.se/api/trafiklab-apis/sl/

https://www.trafiklab.se/api/trafiklab-apis/sl/transport/

NecroKote commented 8 months ago

I don't mean to be rude and drop shadow on awesome work that @DSorlov did here, but I can't pass by without mentioning that I started working on the new SL API integration.

Here is the library that I made to expose both new APIs - Deviations and Transpoirt https://github.com/NecroKote/trafiklab-sl (#67 might be also related)

I plan to make a PR here in the coming weeks that's going to use it

DSorlov commented 8 months ago

Any assistance would be awesome as my time right now is very limited! <3

systemcrash commented 8 months ago

Good news all round. I'd prefer it to keep working after next Friday, so things need to happen here before then. 😅

NecroKote commented 8 months ago

... and here is the rewritten card that should be easier to develop and maintain in the future (only compatible with #71's content)

DSorlov commented 8 months ago

I have comitted to dev, making sure i can get it working and then will release

NecroKote commented 8 months ago

It still requires some work thou. But it's a start. My biggest cocern is lack of migrations from older schemas - people would have to reconfigure from scratch. And if so, we at least need to provide a cleanup during migration. Oh, and I haven't yet touched UI for Deviations (Trafik Status) With new API is't not clear to me how to present all this

systemcrash commented 7 months ago

Do we get a new release soon? :)

DSorlov commented 5 months ago

I am looking for new maintainers as my time simply is not sufficient to maintain this project any more. Please reach out to me.

nemanjab17 commented 3 weeks ago

@DSorlov I am interested in helping if you have the bandwith to get me up to speed