hfurubotten / enturclient Goto Github PK
View Code? Open in Web Editor NEWPython client for fetching estimated departures from stop places in Norway from Entur.org's API.
License: MIT License
Python client for fetching estimated departures from stop places in Norway from Entur.org's API.
License: MIT License
For the following stop (and Quay 50561):
https://entur.no/nearby-stop-place-detail?id=NSR:StopPlace:29417
There is a departure listed leaving about 9:30pm (shown on the En-Tur webpage), whereas the client (via the HASS integration) is showing the next departure tomorrow at 5:30am.
Is there anything you are aware of that might cause this? I'd be happy to add a fix if you have an idea where I might start looking.
I only want to filter/show departures going towards Oslo for my stop (Drammen). Currently using the available filters I get wanted lines from my stop, but each line goes i both directions, making some departures listed exessive
First of all, excellent work @hfurubotten!
Feature request: As far as I understand it is only possible to get info for the two next busses. As a user I would like to be to increase that number of busses/departures I get information for, to see several busses. This could for instance be done through a configurable value similar to the white listing suggested in issue 1. For instance one of the below:
departures_visible_number: 4
departures_visible_next_mins: 60
AA-C0D8E-010:EnTur dsbilling$ python EnTurClientTest.py
Traceback (most recent call last):
File "EnTurClientTest.py", line 1, in <module>
from enturclient import EnturPublicTransportData
File "/Library/Python/2.7/site-packages/enturclient/__init__.py", line 1, in <module>
from enturclient.api import EnturPublicTransportData
File "/Library/Python/2.7/site-packages/enturclient/api.py", line 21
client_name: str,
^
SyntaxError: invalid syntax
AA-C0D8E-010:EnTur dsbilling$
Any suggestions?
The graphql API are changing domain and will be located on this url instead:
https://api.entur.io/journey-planner/v2/graphql
Hi,
This might be an edge case, but anyhow. I use the entur-sensor in Home Assistant to show departures from a couple of stops. At one of my stops (which also is the last on a route) it shows buses arriving as well. On Enturs website only the departures are shown.
In the attached screenshot you can see the bus that has route "63 Sylling" at 09:55. This is actually a bus' last stop. Is it somehow possible to see only the departures - not the arrivals?
PS: I imagine it might be that Brakar have set this up wrong at their side, as platform 28962 actually has no arrivals or departures.
This is really nice!
Forgive me if this is already available somehow.
Would love the ability to add start and stop ids for filtering which lines to display in a "Next bus heading towards the city leaves in 6 minutes." scenario.
We can use a filterByInUse
to find which quays are in use and not under a stop place instead of looking on what actually gets results from a search.
Example:
quays(filterByInUse: true) {
...quayFields
}
"The v2 API is now deprecated, and all consumers should start migrating to the v3 API. End of life date for Journey Planner v2 is september 2022"
For the Fedora RPM packages we like to run the available tests during the build process. Could you please make a new release that contains the tests?
Thanks.
After updating to Home Assistant 2022.7.6 (from 2022.6.x), all my Entur sensors are missing. There is an issue in home-assistant/core that describes the problem. (home-assistant/core#74928).
First of all, great work and thanks for sharing this with the home assistant community!
I've been playing around with this and I have found an API-feature I would love to see implemented! estimatedCalls() supports a list of whitelisted lines (or single line), so that only these line(s) would be part of the result. I've added an example here: https://bit.ly/2A8Opb1
In home assistant I would love to be able to use this filter somewhat like this to only display Line 1 at Nationaltheatret:
stop_ids:
- 'NSR:Quay:7333'
whitelist:
- 'RUT:Line:1'
Hopefully someone with better programming skills than me have the time to get this implemented in a future release!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.