An Amazon Alexa skill for checking the status of travel in London
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.vscode
deploy
server
src
static
test
.editorconfig
.gitignore
.travis.yml
Build.ps1
CODE_OF_CONDUCT.md
LICENSE
README.md
build.sh
index.js
package-lock.json
package.json
server.js

README.md

Alexa London Travel

London Travel

Build status Code coverage

Build history

Overview

An Amazon Alexa skill for checking the status for travel in London.

The skill integrates with the TfL API to query the status of London Underground lines, London Overground, the Docklands Light Railway (DLR) and TfL Rail to tell you their current status, such as whether there are any closures or delays.

Example Utterances

Ask about the status of a specific tube line, for London Overground, the DLR or TfL Rail:

Alexa, ask London Travel about the Victoria line.

Ask about disruption on any of London Underground, London Overground, the DLR or TfL Rail:

Alexa, ask London Travel if there is any disruption today.

Feedback

Any feedback or issues can be added to the issues for this project in GitHub.

Repository

The repository is hosted in GitHub: https://github.com/martincostello/alexa-london-travel.git

Building and Testing

To build the skill just run NPM to install the packages:

> npm install

To run the Mocha unit tests:

> npm test

Debugging

To run the skill locally using Alexa App Server, first clone the repository into directory that is otherwise empty.

> mkdir alexa-london-travel && cd alexa-london-travel
> git clone https://github.com/martincostello/alexa-london-travel repo
> cd repo

Then add a .env file and populate it with your TfL API application Id and key. If you do not have TfL application Id, you can register for one here.

TFL_APP_ID=MyAppId
TFL_APP_KEY=MyAppKey

Now the skill is configured, install the packages and start the test server:

> npm install
> node server

You can now debug the skill in a browser using the built-in test server by browsing to http://localhost:3001/alexa-london-travel.

Launch files are also included in the repository to debug the skill using Visual Studio Code.

License

This project is licensed under the Apache 2.0 license.

Copyright and Trademarks

The London Travel skill is copyright (©) Martin Costello 2017.

Amazon Alexa is a trademark of Amazon.com, Inc.

The TfL roundel is a trademark of Transport for London (TfL).