Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Search specific train in Nederlandse Spoorwegen #28898
Added optional configuration variable
Why is this needed? The current implementation was searching for the next train only. For some travelers and/or stations this isn't convenient. E.g. when you want to get trip information about your fast train ("Intercity"), but a slow train ("Sprinter") for same departing station and arrival station is departing only a few minutes before the fast train. Then the time interval in where you get the information for your specific train is too small and you can't make automations for it, like notify you in time (!) when your train is delayed.
To not hit the FUP threshold for NS API calls (when e.g. watching for all specific trains that your household uses) the sensor only updates around the searched specific trip time. Outside this interval the sensor gives
Related issue (if applicable): n.a.
Example entry for