Comments (18)
@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.
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.
I'll await your updates and see if the home assistant module needs patching.
from ns-api.
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.
Any update on this @aquatix ?
from ns-api.
Well, here you go: https://pypi.org/project/nsapi/ :)
from ns-api.
from ns-api.
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.
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.
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.
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.
What's the current status? When can we expect this change in the Home Assistant integration?
from ns-api.
@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.
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.
@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.
Any news?
from ns-api.
Thanks everyone on your patience with this. I'm currently working on the PR mentioned above and will be committing shortly.
from ns-api.
@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)
- Add minimal delay threshold
- Python 2-3 compatibility HOT 4
- TypeError if no trips were found HOT 7
- TypeError for specific input due to missing time for TripStop HOT 5
- Confusing departure_time_actual behavior HOT 3
- Add 'train cancelled' recognition
- Possible improvements for 3.0.2 HOT 6
- `Punctuality` key missing (sometimes) HOT 30
- TypeError: the JSON object must be str, bytes or bytearray, not NoneType HOT 6
- Multiple notifications of same disruption HOT 7
- AttributeError: 'TripStop' object has no attribute 'planned_platform' in Home Assistant HOT 14
- Get_trips result in keyerror HOT 1
- Minium delay not working for arrival times HOT 1
- Disable notifications for arrival delay
- delays may have strings in them
- Implement support for the official NS API
- Log rotation to prevent big log files
- Train "rijdt niet" needs timestamp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ns-api.