# alexa-translink-skill-js
Alexa Translink Skill - A skill that updates the user on real-time stop updates for an inbound and an outbound stop

To upload the skill zip up the contents of the src/ directory and upload it onto the AWS Lambda settings page.



Note: Set the following git option on config.json to not show up in the commit list:
git update-index --assume-unchanged config.json
To undo and start tracking again:
git update-index --no-assume-unchanged config.json
# alexa-translink-skill-js
Alexa Translink Skill - An Amazon Alexa Skill that informs the user on real-time bus updates for two stops (e.g.: an inbound and an outbound).
I wrote this skill to get real time updates for the bus stops at the end of my street Inbound bus stop - going to Brisbane City, and the outbound going south.
So every morning I can plan when to leave home and walk down to the bus stop for my commute. 

The skill requires a DynamoDB table to be set up and accessible by the Lambda function so you need to set up a role with full DynamoDB access and set
it as the Lambda function's role on the config page.

The Lambda function's config looks like this:
Runtime:        Node.js 4.3
Handler:        index.handler
Role:           Choose an existing role
Existing role:  lambda-dynamo
Description:    Real-time bus updates from Translink
Advanced Settings:
... Timeout 0 min 30 sec (Make sure you do this as getting the real-time feed from Translink takes time and you run over the 10 sec default usually)

To upload the skill zip up the contents of the src/ directory and upload it onto the AWS Lambda function's code page.

Follow this article to set up debugging:
https://developer.amazon.com/blogs/post/Tx24Z2QZP5RRTG1/new-alexa-technical-tutorial-debugging-aws-lambda-code-locally

MAKE SURE TO CHANGE config.json TO BE ABLE TO RUN/DEBUG THE SKILL!!!

Note: Set the following git option on config.json to not show up in the commit list:
git update-index --assume-unchanged config.json
To undo and start tracking again:
git update-index --no-assume-unchanged config.json

Add some notes in the readme
Add some notes in the readme
