{"id":40556195,"url":"https://github.com/thigg/fahrpreis-plotter","last_synced_at":"2026-01-21T00:36:07.707Z","repository":{"id":87139352,"uuid":"517298289","full_name":"thigg/fahrpreis-plotter","owner":"thigg","description":"Plot fahrpreise of Deutsche Bahn over time for a connection","archived":false,"fork":false,"pushed_at":"2024-03-28T18:10:00.000Z","size":2339,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-03-28T19:32:19.076Z","etag":null,"topics":["api","deutsche-bahn","plot","transit","transport","transportation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thigg.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","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}},"created_at":"2022-07-24T10:58:35.000Z","updated_at":"2024-03-28T18:10:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd19414b-e881-4abd-8289-1bfabb9ec70c","html_url":"https://github.com/thigg/fahrpreis-plotter","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.1428571428571429,"last_synced_commit":"0daa6c75509e3c7cd014dffe5542f15cb12d12d6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thigg/fahrpreis-plotter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thigg%2Ffahrpreis-plotter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thigg%2Ffahrpreis-plotter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thigg%2Ffahrpreis-plotter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thigg%2Ffahrpreis-plotter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thigg","download_url":"https://codeload.github.com/thigg/fahrpreis-plotter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thigg%2Ffahrpreis-plotter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28619870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["api","deutsche-bahn","plot","transit","transport","transportation"],"created_at":"2026-01-21T00:36:07.642Z","updated_at":"2026-01-21T00:36:07.699Z","avatar_url":"https://github.com/thigg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fahrpreis statistiken\n\nCollect connection prices (fahrpreise) of the Deutsche Bahn every couple hours,\nto see how connection prices change over time.\nIncludes a tool for plotting them as well!\n\nIt is a tool you can run to gather every vew hours prices for a connection you specified.\nThose prices can then be plotted to see how connection prices change over time.\n\n## Result\nThese are the prices I collected for a connection I was interested in.\n - X-axis is the price until departure\n - Y-axis the date until departure.\n\nFindings:\n - the vetical line at ~4 weeks before departure shows a discontinuity\n - some connections (especially weekends/holidays) are always expensive\n\n![fahpreise plot](images/img.png)\n\n## How to run\nI run the service on a server and create the plots from my laptop. I sync the database file to my laptop for plotting.\n### install gatherer service\nYou can install the gatherer via ansible using this [role](./gatherer_role).\nThis sets the [node app](./gatherer_hafas) up as a separate user and adds a systemd service and timer\n### plot\n 1. get the file\n 2. run `plotter/main.py` (install dependencies before?) with required arguments\n\n# Contributing\nFor questions/issues use the issue tracker. Feel free to create pull requests with your modifications.\n\nIf you created interesting results with this tool and published them, let me know, I'll add you to the readme page.\n\n\n# License\nThis was based on [db-prices-cli](https://github.com/derhuerst/db-prices-cli)\nand by Jannis R. Thanks go to him for the great base.\n\nReworked this to work with a fork of [hafas-client](https://github.com/public-transport/hafas-client). thanks to the authos\n\nSee the [license file](license.md) for further information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthigg%2Ffahrpreis-plotter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthigg%2Ffahrpreis-plotter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthigg%2Ffahrpreis-plotter/lists"}