Skip to content

Make API_MAX_RESULTS configurable #52

@tobiasv1337

Description

@tobiasv1337

Hi,

Would it be possible to make the parameter “results” used for the API request also configurable?
I would like to create a sensor for a station with a lot of different train lines.
Thus, currently it is not possible to always fetch a train that arrives every 20 mins as it might not be within the next 15 arriving trains.

Currently, the result parameter used in the API request is set as API_MAX_RESULTS - being a constant.

Thanks
Tobias

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions