{"id":21396886,"url":"https://github.com/posixpascal/bahndelays","last_synced_at":"2025-03-16T14:43:14.884Z","repository":{"id":142927020,"uuid":"77342339","full_name":"posixpascal/BahnDelays","owner":"posixpascal","description":"A twitter bot which posts whenever any train of Deutsche Bahn is delayed (https://twitter.com/BahnDelays)","archived":false,"fork":false,"pushed_at":"2016-12-31T18:34:04.000Z","size":702,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T00:39:51.421Z","etag":null,"topics":["bahn","trains-delayed","twitter","twitter-bot"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/posixpascal.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}},"created_at":"2016-12-25T20:47:52.000Z","updated_at":"2017-07-26T20:28:46.000Z","dependencies_parsed_at":"2023-07-14T22:15:13.822Z","dependency_job_id":null,"html_url":"https://github.com/posixpascal/BahnDelays","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posixpascal%2FBahnDelays","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posixpascal%2FBahnDelays/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posixpascal%2FBahnDelays/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posixpascal%2FBahnDelays/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posixpascal","download_url":"https://codeload.github.com/posixpascal/BahnDelays/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243885888,"owners_count":20363644,"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":["bahn","trains-delayed","twitter","twitter-bot"],"created_at":"2024-11-22T14:30:16.650Z","updated_at":"2025-03-16T14:43:14.863Z","avatar_url":"https://github.com/posixpascal.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BahnDelays\nA twitter bot which posts whenever a train of Deutsche Bahn\nis delayed, it fetches a list of stations and views their DepartureBoard \nto get an insight on how much the trains are delayed.\n\nDocs: http://blog.pascalraszyk.de/BahnDelays/docs/\n\n# Building\nCheckout the source code and run:\n```\nnpm install\n```\n\nTo compile the typescript code to javascript run:\n```\ntsc\n(alternatively if tsc is not available run: ./node_modules/.bin/tsc)\n```\n\nTo generate the docs run:\n```\nnpm run docs\n```\n\nTo get the twitter client to work you need to specify the apps consumer tokens and access tokens.\nI'm using a local .env file which looks like this:\n\n```\nCONSUMER_KEY=XXX\nCONSUMER_SECRET=XXX\nACCESS_TOKEN=XXX-XXX\nACCESS_TOKEN_SECRET=XXX\nBAHN_API_KEY=null\n```\n\nThe `BAHN_API_KEY` is not used actively at the moment since I couldn't obtain a valid API KEY in time.\nThis project uses the bahn.de website for data retrival. As soon as I get my API key I will rewrite parts of this bot\n\n# Status\nThis is far from finished although it works quite well at the moment. \nIt needs more fine grained options like a fixed amount of tweets per hour and the\ntrain queue should reset itself every 30minutes. Unfortunately there are soooo many trains delayed \nthat its impossible to post every delayed train to twitter without breaking twitter's API Guidelines.\n\n# Copyright\nThe dataset 'stationdata.csv' is copyrighted by Deutsche Bahn (https://data.deutschebahn.com/dataset/data-stationsdaten)\n\n# Contributions\nContributions are welcomed. Do whatever you want.\n\n# License\n            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE \n                        Version 2, December 2004 \n\n    Copyright (C) 2004 Sam Hocevar \u003csam@hocevar.net\u003e \n\n    Everyone is permitted to copy and distribute verbatim or modified \n    copies of this license document, and changing it is allowed as long \n    as the name is changed. \n\n                DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE \n    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION \n\n    0. You just DO WHAT THE FUCK YOU WANT TO.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposixpascal%2Fbahndelays","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposixpascal%2Fbahndelays","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposixpascal%2Fbahndelays/lists"}