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

Add service alerts #11

Merged
merged 2 commits into from
May 16, 2024
Merged

Add service alerts #11

merged 2 commits into from
May 16, 2024

Conversation

meringu
Copy link
Contributor

@meringu meringu commented May 16, 2024

Adds new service alert attributes to the sensor. For each trip:

  • alert_count
  • For each alert:
    • description
    • effect
    • header
    • severity_level
    • url

Alerts details are zero indexed, as there isn't a concept of a default alert like how the next service is the default trip.

I've only run this on my particular train route for a couple of alerts this morning. I don't have any alerts at the moment. Metlink should have some alerts affecting me tomorrow, so I can report back the results once that has happened.

@meringu
Copy link
Contributor Author

meringu commented May 16, 2024

This seemed to work pretty well for me this morning. I forgot to wire in the severity_level, so that has been done now.

@make-all make-all merged commit 76ae8a4 into make-all:main May 16, 2024
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.

None yet

2 participants