← Back to smarthome overview

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.

Mobile MVG departure monitor with line, destination, departure time and delay

The mobile view shows the next departures for the selected profile, including delays.

What it shows

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.

Endpoints

EndpointPurpose
/Mobile HTML view with auto-refresh
/?profile=<name>HTML view for a specific profile
/api/departuresJSON list for the first profile
/api/departures?profile=<name>JSON list for a specific profile
/healthzHealthcheck 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.