Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rmvtransport.py #75

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

RexVizsla
Copy link

@RexVizsla RexVizsla commented Nov 21, 2023

Hey, I wanted to get the departures at a specific time (f.e. "16:00") using the "time" flag which is supported by the RMV-API but not PyRMVtransport.
I changed the code of rmvtransport.py so that you're able to specify the time using
It works for me but it would be great if another person could double check that it works and there aren't any errors!

data = await rmv.get_departures(
                station_id=marburg_bahnhof,
                products=["RB","RE"],
                max_journeys=2,
                time="16:00")´´´
                

added time specification
@cgtobi
Copy link
Owner

cgtobi commented Nov 22, 2023

Thanks @RexVizsla for your contribution. Please run the pre-commit hooks to fix the CI complaints.

@user3287
Copy link

Danke Merkel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants