Giter Site home page Giter Site logo

enturclient's People

Contributors

dependabot[bot] avatar hfurubotten avatar scop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

enturclient's Issues

Only show departures going in a certain direction

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

More than next two busses

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

Running demo fails

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?

Api are changing location

The graphql API are changing domain and will be located on this url instead:
https://api.entur.io/journey-planner/v2/graphql

  • Update resource URL
  • Research rate limiting on the new service urls

Home Assitant sensor also showing arriving buses at last stop

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?

capture

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.

Ability to add destination

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.

API v2 is depricated

"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"

Add tests to source tarball

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.

Add support for "whiteListed"-function

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!

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.