{"id":17700511,"url":"https://github.com/cdown/whensthebus","last_synced_at":"2025-03-31T02:28:01.606Z","repository":{"id":62588831,"uuid":"163440914","full_name":"cdown/whensthebus","owner":"cdown","description":"Get live UK bus times on stdout","archived":false,"fork":false,"pushed_at":"2018-12-29T19:25:50.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-07T13:47:40.063Z","etag":null,"topics":["buses","livedata","london","london-underground","transport"],"latest_commit_sha":null,"homepage":"","language":"Python","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/cdown.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2018-12-28T18:58:39.000Z","updated_at":"2018-12-29T19:25:52.000Z","dependencies_parsed_at":"2022-11-03T17:01:17.612Z","dependency_job_id":null,"html_url":"https://github.com/cdown/whensthebus","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fwhensthebus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fwhensthebus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fwhensthebus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fwhensthebus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdown","download_url":"https://codeload.github.com/cdown/whensthebus/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246405811,"owners_count":20771820,"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":["buses","livedata","london","london-underground","transport"],"created_at":"2024-10-24T17:42:25.548Z","updated_at":"2025-03-31T02:28:01.572Z","avatar_url":"https://github.com/cdown.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Given ATCO codes, shows the next bus times at given stops.\n\nThis is particularly useful bound to a keybinding and passed to\nlibnotify’s ``notify-send`` program, so you can quickly get an overview\nof the next buses at stops you care about.\n\nYou must set ``WTB_APP_ID`` and ``WTB_APP_KEY`` to an app ID and app key\nvalid at `TransportAPI`_.\n\nUsage\n=====\n\nPass ATCO codes with ``-a``. See below for how to find them.\n\n::\n\n   % WTB_APP_ID=xxx WTB_APP_KEY=xxx wtb -a 490004733D -a 4100008HAYRS\n   Canada Water Bus Station (Stop D) (490004733D):\n   - 199 to Canada Water: Due, 11 min, 25 min\n   - C10 to Canada Water: 3 min, 9 min, 19 min\n   - 1 to Canada Water: 8 min, 20 min\n   - P12 to Surrey Quays: 11 min, 20 min\n   - 225 to Canada Water: 13 min\n   - LO-M to Canada Water: 23 min\n\n   Haymarket Bus Station (R) (4100008HAYRS):\n   - 44 to Dinnington: 4 min, 34 min, 1 hr 4 min\n   - 43 to Cramlington Manor Walks Dudley Lane: 11 min, 41 min\n   - 45 to Dinnington: 19 min, 49 min, 1 hr 19 min\n   - 43 to Morpeth Bus Station: 26 min\n\nHow do I find ATCO codes?\n=========================\n\n-  For London bus stops, it’s in the URI. For example, in `this URI`_,\n   “490004733D” is the ATCO code.\n-  For non-London, try the following:\n\n   1. Navigate to the bus stop on OpenStreetMap\n   2. On the right, click “layers”\n   3. Tick “map data”\n   4. Click on the bus stop on the map\n   5. On the left, you should see the ATCO code (possibly as something\n      like ``naptan:AtcoCode``)\n\n.. _TransportAPI: https://www.transportapi.com/\n.. _this URI: https://tfl.gov.uk/bus/stop/490004733D/canada-water-bus-station\n\nInstallation\n============\n\nTo install the latest stable version from PyPi:\n\n.. code::\n\n    $ pip install -U whensthebus\n\nTo install the latest development version directly from GitHub:\n\n.. code::\n\n    $ pip install -U git+https://github.com/cdown/whensthebus.git@develop\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdown%2Fwhensthebus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdown%2Fwhensthebus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdown%2Fwhensthebus/lists"}