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

No Alerts shown in MessageBar #800

Open
hbruch opened this issue Mar 15, 2024 · 0 comments
Open

No Alerts shown in MessageBar #800

hbruch opened this issue Mar 15, 2024 · 0 comments

Comments

@hbruch
Copy link

hbruch commented Mar 15, 2024

Though OTP integrates GTFS-Realtime Alerts, these don't show up in the MessageBar.

Reason seems to be, that Digitransit only intends to show alerts of severity level SEVERE:

{"id":"MessageBarQuery","query":"query MessageBarQuery($feedids: [String!]) {
  alerts(severityLevel: [SEVERE], feeds: $feedids) {
    feed
    id
    alertDescriptionText
    alertHash
    alertHeaderText
    alertSeverityLevel
    alertUrl
    effectiveEndDate
    effectiveStartDate
    alertDescriptionTextTranslations {
      language
      text
    }
    alertHeaderTextTranslations {
      language
      text
    }
    alertUrlTranslations {
      language
      text
    }
  }
}
","variables":{"feedids":["hbg"]}}

However, VVS alert messages do not provide a severity:
image

Note: According to the spec, severity_level is still experimental.

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