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

Display warnings #28

Open
mrueg opened this issue Jan 10, 2024 · 0 comments
Open

Display warnings #28

mrueg opened this issue Jan 10, 2024 · 0 comments

Comments

@mrueg
Copy link
Contributor

mrueg commented Jan 10, 2024

The API provides warnings like

				{
					"id": "213021",
					"type": "warning",
					"summary": "Störung.",
					"text": "Aufgrund des Streiks der Gewerkschaft GDL ist der Zugverkehr der S-Bahn Berlin von Mittwoch den 10. Januar 2 Uhr bis einschließlich Freitag den 12.Januar bis 18 Uhr massiv beeinträchtigt. Bitte mit Zugausfällen rechnen. Für Fahrten innerhalb Berlins nutzen Sie bitte die Verkehrsmittel der BVG (U-Bahn, Tram, Bus). Auch der Regional- und Fernverkehr der Deutschen Bahn sind von diesem Streik betroffen. Bitte informieren Sie sich entsprechend bei diesen Unternehmen.\n<a href=\"https://sbahn.berlin/\" target=\"_blank\" rel=\"noopener\">Information</a>",
					"icon": {
						"type": "HIM2",
						"title": null
					},
					"priority": 32,
					"products": {
						"suburban": true,
						"subway": false,
						"tram": false,
						"bus": false,
						"ferry": false,
						"express": false,
						"regional": false
					},
					"company": "VBB",
					"categories": [
						2
					],
					"validFrom": "2024-01-10T03:00:00+01:00",
					"validUntil": "2024-01-10T15:00:00+01:00",
					"modified": "2024-01-08T08:28:13+01:00"
				},

under departures[].remarks[] e.g. on this endpoint: https://v6.vbb.transport.rest/stops/900100003/departures

It would be nice if we could have them displayed in lovelace as well (I'm not sure how to achieve that though) Maybe a little attention mark on the line icon (not sure if this is an easy thing to do in CSS)

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