{"id":15636318,"url":"https://github.com/passy/tube-trains-bot","last_synced_at":"2025-07-23T04:03:42.257Z","repository":{"id":66088606,"uuid":"76145579","full_name":"passy/tube-trains-bot","owner":"passy","description":"A Google Home action allowing you to ask for TfL Tube departures.","archived":false,"fork":false,"pushed_at":"2020-06-17T22:02:39.000Z","size":6730,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-28T19:52:27.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://assistant.google.com/services/a/id/0b19d0985c04a36f/","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/passy.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":"2016-12-11T00:30:13.000Z","updated_at":"2020-06-17T22:02:42.000Z","dependencies_parsed_at":"2023-02-22T06:00:47.987Z","dependency_job_id":null,"html_url":"https://github.com/passy/tube-trains-bot","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/passy/tube-trains-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Ftube-trains-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Ftube-trains-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Ftube-trains-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Ftube-trains-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/passy","download_url":"https://codeload.github.com/passy/tube-trains-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Ftube-trains-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266614306,"owners_count":23956341,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-03T11:02:09.986Z","updated_at":"2025-07-23T04:03:42.219Z","avatar_url":"https://github.com/passy.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tube Trains - Google Home Action [![Build Status](https://travis-ci.org/passy/tube-trains-bot.svg?branch=master)](https://travis-ci.org/passy/tube-trains-bot)\n\n\u003cimg src=\"assets/smol.png\" align=\"left\" /\u003e\n\nFulfilment for an [api.ai](https://api.ai/) -powered [Actions on Google](https://developers.google.com/actions/) integration\nthat provides live departure times through a Google Home.\n\n\u003cimg src=\"https://developers.google.com/actions/images/badges/XPM_BADGING_GoogleAssistant_VER.png\" align=\"right\" width=150 /\u003e\n\n## Using\n\nThis is deployed and live! If you have a Google Home, ask activate it by saying\n\n\u003e Hey Google, let me talk to Tube Trains.\n\nYou can also ask it in one go:\n\n\u003e Hey Google, ask Tube Trains about the next departures from Euston Square.\n\nOr something a bit more involved:\n\n\u003e Hey Google, at Tube Trains, tell me about the next eastbound departures on the Hammersmith \u0026 City Line from Aldgate East.\n\nYou can see it in action here:\n\n[\u003cimg src=\"assets/video_thumb.png\" width=320\u003e](https://twitter.com/passy/status/843184619935715332)\n\nYou can also find it under the available services in the Google Home app:\n\n\u003cimg src=\"assets/app.png\" width=320\u003e\n\n## Building and Testing\n\nAutomated testing is limited at this point, types have provided sufficient help so far.\n\nSome limited test fixtures are available for manual testing:\n\n```\nstack build\nstack exec tube-bot-fulfillment\n\ncurl -vv 'http://localhost:8001/webhook' -XPOST -H \"Content-Type: application/json\" -d @data/test_req.json\n```\n\nThere's also a small test suite you can run with `stack test`.\n\n### Building the docker image\n\nThere's a Docker image for easier deployment, which simply wraps a statically linked\nbinary.\n\nIn order to build the container, please first build the static binary.\n\n```\n./build-static.sh\ndocker build --rm -t passy/tube-bot-fulfillment:vx.y.z .\ndocker push passy/tube-bot-fulfillment:vx.y.z\n```\n\nAlternatively, if building statically through the provided container doesn't work\n(OOM errors or linking issues due to outdated upstream), you can build via\n`stack build --docker` after adding `ld-options: -static` to the executable section\nin `package.yaml`. If this turns out to be the overall more reliable way, I'll\nchange the script accordingly.\n\n## Deployment\n\nI use this [docker-compose](https://github.com/passy/tube-bot-fulfillment-deployment) config file\nthat I check out and run on my VPS. Maybe that'll do for you as well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassy%2Ftube-trains-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpassy%2Ftube-trains-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassy%2Ftube-trains-bot/lists"}