{"id":27441246,"url":"https://github.com/cdtomkins/pitrains","last_synced_at":"2025-04-14T23:12:16.169Z","repository":{"id":216193882,"uuid":"120371211","full_name":"cdtomkins/PiTrains","owner":"cdtomkins","description":"Live train notification tool for Raspberry Pi and Blinkt!","archived":false,"fork":false,"pushed_at":"2025-03-06T21:57:32.000Z","size":2866,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-14T23:12:06.234Z","etag":null,"topics":["blinkt","raspberry-pi","raspberry-pi-zero","raspberrypi","trains","trains-information","uk"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdtomkins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-02-05T22:40:34.000Z","updated_at":"2025-03-06T21:57:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"9299f2f1-b3f3-4cf1-bfd2-77b6c5861a3e","html_url":"https://github.com/cdtomkins/PiTrains","commit_stats":null,"previous_names":["diaolou/pitrains","cdtomkins/pitrains"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdtomkins%2FPiTrains","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdtomkins%2FPiTrains/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdtomkins%2FPiTrains/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdtomkins%2FPiTrains/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdtomkins","download_url":"https://codeload.github.com/cdtomkins/PiTrains/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975329,"owners_count":21192210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["blinkt","raspberry-pi","raspberry-pi-zero","raspberrypi","trains","trains-information","uk"],"created_at":"2025-04-14T23:12:15.565Z","updated_at":"2025-04-14T23:12:16.162Z","avatar_url":"https://github.com/cdtomkins.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PiTrains\nLive train notification tool for **Raspberry Pi** and **Blinkt**!\nA live UK train departure board to check before you walk out the door.\nUses the **OpenLDBWS** service to show the live running status of direct trains between your specified stations.\n## EXAMPLE\n![PiTrains in action...](example.jpg)\n## ABOUT\nEach of the eight LEDs on the Blinkt represents a 5 minute time window. The colour of each LED indicates the train(s) available in that time window:\n1. Black/Unlit = no train.\n2. White = a train is imminent/on platform/just left.\n3. Green = an on-time train.\n4. Yellow = a delayed train (this is the actual delayed time, not the pre-delay scheduled time.)\n5. Blue = unspecified delay (there was supposed to be a train, but it is delayed and the delay period is not specified.)\n6. Red = a cancelled train (there was supposed to be a train, but now it's not coming.)\nIf there are multiple trains in the time window, the \"best\" LED state is set - White\u003eGreen\u003eYellow\u003eBlue\u003eRed\u003eBlack.\n## ENVIRONMENT\n1. Make sure the time on your Pi is correct.\n2. You might want to use a Python [virtual environment](https://docs.python.org/3/library/venv.html).\n3. Install Python dependencies with `pip install -r requirements.txt`\n4. Sign up for OpenLDBWS and get your API key [here](http://realtime.nationalrail.co.uk/OpenLDBWSRegistration/).\n5. Create a DARWIN_WEBSERVICE_API_KEY environment variable (your API key).\n6. Create a DEPARTURE_CRS_CODE environment variable (see [this list](http://www.railwaycodes.org.uk/crs/CRS0.shtm)).\n7. Create DESTINATION_CRS_CODE environment variable (see [this list](http://www.railwaycodes.org.uk/crs/CRS0.shtm)).\n8. Run on cron.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdtomkins%2Fpitrains","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdtomkins%2Fpitrains","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdtomkins%2Fpitrains/lists"}