{"id":16953892,"url":"https://github.com/eliashaeussler/db-train-metrics","last_synced_at":"2026-03-10T07:12:03.880Z","repository":{"id":247107599,"uuid":"823262818","full_name":"eliashaeussler/db-train-metrics","owner":"eliashaeussler","description":"📈 Visualizes DB train data using Grafana, Prometheus and the DB Onboard API","archived":false,"fork":false,"pushed_at":"2026-01-29T21:09:41.000Z","size":1532,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-30T10:47:52.580Z","etag":null,"topics":["db","grafana","prometheus","python","train","wifi","wifionice"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eliashaeussler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["eliashaeussler"],"custom":["https://paypal.me/eliashaeussler"]}},"created_at":"2024-07-02T17:34:30.000Z","updated_at":"2026-01-29T21:08:11.000Z","dependencies_parsed_at":"2024-09-13T21:27:12.691Z","dependency_job_id":"95a63d26-4b7b-406c-a9d3-d9d3d10a2f1f","html_url":"https://github.com/eliashaeussler/db-train-metrics","commit_stats":null,"previous_names":["eliashaeussler/db-train-metrics"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/eliashaeussler/db-train-metrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Fdb-train-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Fdb-train-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Fdb-train-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Fdb-train-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eliashaeussler","download_url":"https://codeload.github.com/eliashaeussler/db-train-metrics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliashaeussler%2Fdb-train-metrics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30326893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["db","grafana","prometheus","python","train","wifi","wifionice"],"created_at":"2024-10-13T22:08:14.967Z","updated_at":"2026-03-10T07:12:03.832Z","avatar_url":"https://github.com/eliashaeussler.png","language":"Shell","funding_links":["https://github.com/sponsors/eliashaeussler","https://paypal.me/eliashaeussler"],"categories":[],"sub_categories":[],"readme":"# DB train metrics\n\nThis repository allows to visualize data of the current trip when\ntravelling on board of a DB train. It visualizes speed and delay\nand displays information about the current train and next station.\n\n![Screenshot](docs/screenshot.png)\n\n## Requirements\n\n\u003e [!NOTE]\n\u003e You must be connected to a `WIFIonICE` network in order for this\n\u003e repository to work since it fetches all relevant information from\n\u003e DB Onboard APIs.\n\n* [Docker](https://docs.docker.com/get-docker/)\n* [Docker Compose](https://docs.docker.com/compose/install/)\n* Connection to [`WIFIonICE` network](https://int.bahn.de/en/trains/wifi)\n\n## Usage\n\n\u003e [!TIP]\n\u003e Since bandwidth on trains is limited, it is recommended to pull all\n\u003e necessary Docker images prior to boarding the train. Just clone the\n\u003e repository and run [`build.sh`](#build-docker-images).\n\n### Quickstart\n\n1. Clone the repository\n2. Run `./start.sh --open --follow`\n\n### Start Docker containers\n\nUse the [`start.sh`](start.sh) script to start Docker containers and\nopen the Grafana dashboard in your browser.\n\n```bash\n$ ./start.sh [\u003cflags\u003e]\n```\n\nFlags:\n\n```\n-b, --build     Rebuild local Docker images\n-d, --debug     Display more information when running this script\n-f, --follow    Keep containers running as long as the script runs\n-h, --help      Show this help\n-l, --logs      Follow container logs once containers are running\n-o, --open      Open the Grafana dashboard in your browser\n-p, --prune     Prune existing Docker volumes to reset persisted data\n-v, --version   Print the current version of this script\n```\n\n_You can also do this manually by running `docker compose up`._\n\n### Stop Docker containers\n\nUse the [`stop.sh`](stop.sh) script to stop running Docker containers.\n\n```bash\n$ ./stop.sh [\u003cflags\u003e]\n```\n\nFlags:\n\n```\n-d, --debug     Display more information when running this command\n-h, --help      Show this help\n-p, --prune     Prune existing Docker volumes to reset persisted data\n-v, --version   Print the current version of this script\n```\n\n_You can also do this manually by running `docker compose down`._\n\n### Build Docker images\n\nUse the [`build.sh`](build.sh) script to (re)build Docker images.\n\n```bash\n$ ./build.sh [\u003cflags\u003e]\n```\n\nFlags:\n\n```\n-d, --debug     Display more information when running this script\n-h, --help      Show this help\n-v, --version   Print the current version of this script\n```\n\n_You can also do this manually by running `docker compose build --pull`._\n\n## Troubleshooting\n\nIf your dashboard doesn't receive any data make sure that you are\nreally connected to the ICE Wifi and that you can access\n[iceportal.de](https://iceportal.de) in  your browser.\n\nYou can also check for connection problems by running\n`docker compose logs -f bridge`. The logs should show failed requests\nto fetch JSON from \u003chttps://iceportal.de/api1/rs/status\u003e\nand \u003chttps://iceportal.de/api1/rs/tripInfo/trip\u003e.\n\nUnfortunately, the connection to the DB Onboard API is not very stable\nand may not always work.\n\n## Stack\n\n* [Prometheus](https://prometheus.io/) as data source\n* [Grafana](https://grafana.com/) for visualization\n* [Python](https://www.python.org/) script as bridge between DB Onboard API and Prometheus\n* [Docker](https://www.docker.com/) for containerization\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliashaeussler%2Fdb-train-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliashaeussler%2Fdb-train-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliashaeussler%2Fdb-train-metrics/lists"}