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

Status showing as 'OK' for cancelled trains (v1.1) #8

Open
stevehop opened this issue Aug 25, 2022 · 0 comments
Open

Status showing as 'OK' for cancelled trains (v1.1) #8

stevehop opened this issue Aug 25, 2022 · 0 comments

Comments

@stevehop
Copy link

stevehop commented Aug 25, 2022

The train below is shown as 'status: OK' but in fact was cancelled which was reflected in the RTT API. I think the logic needs tweaking to allow a wild card (e.g. "Cancelled*") in the 'displayAs' field.

In HA:

journey_start: AFK
journey_end: EBN
next_trains:
  - origin_name: Rye
    destination_name: Eastbourne
    service_uid: W78634
    scheduled: 24-08-2022 16:25
    estimated: 24-08-2022 16:25
    minutes: 26
    platform: '1'
    operator_name: Southern
    stops_of_interest: []
    scheduled_arrival: 24-08-2022 17:44
    estimate_arrival: 24-08-2022 17:44
    journey_time_mins: 79
    stops: 13
    status: OK

In RTT API (note the 'displayAs' field)
EBD2

From National Rail Enquiries:
EBD

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

No branches or pull requests

1 participant