Skip to content

Alexa Skill to hear when the next train is leaving your station

Notifications You must be signed in to change notification settings

goizueta/TimeToLeave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

TimeToLeave

A short alexa skill that tells you when the next train is leaving from your station.

Motivation

Since I often either miss the last train at the station, or arrive 10+ minutes early, I made a short alexa skill that will let me know when the next two trains are leaving my station.

Installing and Running

  1. Customize the code for your station
  1. Create your Alexa skill
  • Create an Alexa skill (named whatever you want) at https://developer.amazon.com/alexa/console/ask/create-new-skill
  • Select 'Custom' for the skill model
  • Copy the JSON in alexaIntent.json into the JSON Editor section of the Interaction model
  • Go to the Endpoint page, select AWS Lambda ARN as your endpoint and copy down the skill ID that is given to you
  • Save
  1. Create your Lambda function
  • Create a Lambda function( named whatever you want)at https://console.aws.amazon.com/lambda/home?region=us-east-1#/create
  • In Configuration add Alexa Skills Kit as a trigger
  • Enter the Skill ID you copied in step 1
  • Copy the ARN in the top right of the page and enter it into the Default Region field on your Alexa Skill Endpoint page
  • In the Function Code section, select Upload a .ZIP file as the Code Entry Type and upload the zip file you made in step 1
  • Select Node.js 6.10 as your runtime
  • Enter index.myHandler as your handler
  • Click Save and Test in the top right.
  1. Test your skill
  • Return to the Alexa console.
  • Build your skill
  • Test it with the command "Is it time to leave?"

Credits

Wouldn't be possible without:

License

MIT © Roberto Goizueta

About

Alexa Skill to hear when the next train is leaving your station

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published