Coder Social home page Coder Social logo

NS Api to change about ns-api HOT 18 CLOSED

aquatix avatar aquatix commented on July 17, 2024
NS Api to change

from ns-api.

Comments (18)

aquatix avatar aquatix commented on July 17, 2024 3

@xatr0z ah, that's annoying :( I'm really busy at work, so my energy when at home isn't always hobby-grade, but I'm working on this.

from ns-api.

aquatix avatar aquatix commented on July 17, 2024 2

I also found your blogpost on Tweakers, nice. Thanks for the pointers, I'll definitely will look into updating the library.
Also, as someone wanting to use HA a bit more in the near-ish future, I'm kind of invested ;)

from ns-api.

b10m avatar b10m commented on July 17, 2024 2

I'll await your updates and see if the home assistant module needs patching.

from ns-api.

xatr0z avatar xatr0z commented on July 17, 2024 2

Just to be sure: For new users like me, it isn't possible to use nsapi right now. Registrations to the old API are already closed

from ns-api.

b10m avatar b10m commented on July 17, 2024 2

Any update on this @aquatix ?

from ns-api.

aquatix avatar aquatix commented on July 17, 2024 2

Well, here you go: https://pypi.org/project/nsapi/ :)

from ns-api.

Squixx avatar Squixx commented on July 17, 2024 1

#17

from ns-api.

Squixx avatar Squixx commented on July 17, 2024 1

Sorry, had a busy couple of months at work, so haven't been tracking github. Thanks for fixing my pr and merging this!

from ns-api.

aquatix avatar aquatix commented on July 17, 2024

Yesterday I got the same mail (I think they even announced it a while ago already). I was pondering whether I wanted to do the rewrite, as of the start of this year I don't use the train as often as I used to.

However, I still have a use for it, and I'm pleasantly surprised to find it being used in Home Assistant as well, so I'll certainly look into the new specs.

Yesterday not much information was available yet, I'll look into it this weekend (together with requesting a new account at the NS API portal).

I'll post back here when I have a better idea what work it involves :)

from ns-api.

hmmbob avatar hmmbob commented on July 17, 2024

Cool. I'm not using it too much anymore either, since I switched jobs. But I do know that there are quite a few users. Had a blog post about how I used it in Home Assistant too: https://hmmbob.tweakblogs.net/blog/15517/ns-reisinformatie-in-home-assistant

This is the Home Assistant integration that @b10m made:
https://www.home-assistant.io/components/sensor.nederlandse_spoorwegen/
https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/nederlandse_spoorwegen/sensor.py

from ns-api.

aquatix avatar aquatix commented on July 17, 2024

And then I just disappeared for half a year O:)

Currently reviewing the pull request by @Squixx , who was very kind to do the work for me :)

There are a few oddities in the PR, but the code changes themselves look fine, so if it tests correctly with me and the minor issues I have with the other changes can be resolved, I'll be merging it soon.

Thanks for your patience y'all. Maybe we have a new version before October ;)

from ns-api.

janjbrand avatar janjbrand commented on July 17, 2024

What's the current status? When can we expect this change in the Home Assistant integration?

from ns-api.

kevintuhumury avatar kevintuhumury commented on July 17, 2024

@aquatix Wondering the same thing @janjbrand is asking about. We're past the 1st of October, so I'm guessing the old API is deprecated now. As a new user (don't have credentials to the old API), I haven't been able to use the Home Assistant integration, which uses this library, for months now. Would be nice to have the update in Home Assistant so that it can actually be used again.

Don't want to be that guy, but if this isn't maintained anymore, maybe @Squixx should release a version so it can be integrated into Home Assistant again.

from ns-api.

kevintuhumury avatar kevintuhumury commented on July 17, 2024

So, is there any progress on this? It's been over 2 months already since the PR (#17) has been made. I love that you've made this and that it is included in Home Assistant through an integration, but this issue has been here since March. What if there's another issue. Is that going to take another year to be updated?

@aquatix and @Squixx could you please look at getting this merged?

If not, I'm actually thinking of just forking this repository and merging in #17 into that and creating a PR for Home Assistant to use the forked repository as so many people want to use this functionality.

from ns-api.

aquatix avatar aquatix commented on July 17, 2024

@kevintuhumury I appreciate the way you talk about this. I've seen developers of projects I use disappear in the past because of work, home situation and such, and now I'm suddenly one myself. It does not sit well with me :)

Anyway, I think there are a few options from here:

  • @Squixx can do the new PR without the line-ending changes (and the Microsoft-copyrighted docker source file). This would be my preference, as he would be in the history with his work in the way Git intends
  • I can take the PR by @Squixx and apply the changes anew on a new branch, without the above mentioned changes, and commit them myself, with of course a honourable mention to @Squixx for their hard work
  • I can apply the PR wholesale, losing al history because of the line ending changes in all source files. This would be regrettable, and does not have my preference, but it would not be lethal.

I would very much like @Squixx to chime in on my comments on the code. I'll be preparing a PR for option 2 in the meanwhile just in case (and to better see what changed).

from ns-api.

janjbrand avatar janjbrand commented on July 17, 2024

Any news?

from ns-api.

aquatix avatar aquatix commented on July 17, 2024

Thanks everyone on your patience with this. I'm currently working on the PR mentioned above and will be committing shortly.

from ns-api.

aquatix avatar aquatix commented on July 17, 2024

@YarmoM did some great work getting the changes in Home Assistant. home-assistant/core#30971 will bring it further up to date. Hopefully it gets included in the next version of HA :)

from ns-api.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.