Skip to content

eebbesen/alexa-snomer-ruby

Repository files navigation

unit tests

alexa-snomer-ruby

Minnesota snow emergency information

Working towards a reusable Ruby interface for Alexa skills with APL

package

Generates zip file for upload to AWS Lambda for Ruby

./package.sh

deploy

For display please set the following environment variables

  • APP_NAME
  • LOGO_URL

manual test

src/ex.rb is an attempt to simulate the way Alexa accesses the Lambda function

device with no screen

ruby src/ex.rb ns

device with screen

ruby src/ex.rb

unit test

bundle exec rspec

APL

generate templates in the developer console

  1. https://developer.amazon.com
  2. Select your skill
  3. From Build tab click Multimodal Reaponses
  4. Click Visual
  5. Click Create Visual Response
  6. Use tools to craft your visual presentation template
  • I like to click the Data icon and use data that's representative of what I intend to display
  1. Save your template
  2. Download your template to the apl directory
  • This file will contain the template and any sample data you created

modify the downloaded template

The downloaded template includes at least three top-level keys: document, datasources and sources.

document

We'll save the document values in the apl directory. Your file should look like

{
    "type": "APL",
...
}

Tools

About

Alexa skill for snow emergencies in Minnesota

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published