MVG Departures
MVG Departures is a small departure monitor for Munich U-Bahn and S-Bahn connections. It is built for quick glances on a phone and for the dashboards around the flat, not for route planning or full timetable browsing.
The mobile view shows the next departures for the selected profile, including delays.
What it shows
- Line, destination, planned departure, delay and disruption messages.
- U-Bahn and S-Bahn are visually separated with blue and green icons.
- A configurable number of departures per station, with a short cache to avoid unnecessary API calls.
- A mobile-first layout that also works well on small wall displays.
Profiles and filters
Stations are grouped into profiles such as outbound and return journeys. Each station has a type and an optional list of destinations to hide. The filter is deliberately an exclusion list: only the named destinations are removed, while new or unknown destinations stay visible. That way a line change or diversion shows up instead of silently disappearing.
- Profiles are selected with clickable tiles when more than one exists.
- A URL parameter selects a profile directly, which makes a profile bookmarkable and embeddable.
- The HTML view refreshes itself with a meta refresh, configurable through the refresh interval.
Endpoints
| Endpoint | Purpose |
|---|---|
/ | Mobile HTML view with auto-refresh |
/?profile=<name> | HTML view for a specific profile |
/api/departures | JSON list for the first profile |
/api/departures?profile=<name> | JSON list for a specific profile |
/healthz | Healthcheck for Docker and Watchtower |
Deployment
The service runs as a Docker container from a GHCR image. A local config.yaml with stations and profiles is mounted read-only, and the timezone is set through the environment. The image is rebuilt on every push to main, with an automatic cleanup that keeps only the last few versions. A Watchtower label allows routine image updates.
Where the data appears
The same departure data feeds the home dashboard and the ESP32 dashboards in the flat. The M5Stack dashboard and the WT32-SC01 dashboard both show live MVG departures next to weather and calendar information.
See the MVG Departures repository for the configuration format, Docker image and CI setup.
The actual station list and commute profiles stay in the local configuration and are not published here.