GithubHelp home page GithubHelp logo

pauldeden / s-watch-alexa-skill Goto Github PK

View Code? Open in Web Editor NEW
0.0 7.0 0.0 212 KB

A serverless stopwatch Alexa Skill using lambda, zappa, flask-ask and simpledb

License: Apache License 2.0

Python 100.00%

s-watch-alexa-skill's Introduction

S Watch Alexa Skill

A serverless stopwatch Alexa Skill using Amazon Lambda, zappa, flask-adk and Amazon Simpledb.

Usage

  • Say, "Alexa, enable S Watch"
  • Then, to start the stopwatch say, "Alexa, Start S Watch"
  • To stop the stopwatch and hear how long it was running say, "Alexa, tell S Watch to end"

Developing

  • clone the repo
  • make sure you have python2.7 and the awscli installed
  • run aws sdb create-domain --domain-name s-watch
  • run python -m virtualenv venv
  • run source venv/bin/activate
  • run python -m pip install -r requirements.txt
  • edit zappa_settings.json changing manage_roles to true
  • run zappa deploy production
  • edit zappa_settings.json changing manage_roles to false
  • add the following to your zappa-permissions IAM policy that zappa created in the Statement array
        {
            "Effect": "Allow",
            "Action": [
                "sdb:*"
            ],
            "Resource": "arn:aws:sdb:us-west-2:<your AWS account id goes here>:domain/s-watch"
        },
  • set up your alexa skills application at https://developer.amazon.com/edw/home.html
  • in the Interation Model section fill in the values from the intent_schema.json, custom_slot_types.txt and sample_utterances.txt files respectively.
  • in the Configuration section choose the HTTPS Endpoint type
  • in the SSL Certificate section choose 'My development endpoint is a sub-domain of a domain that has a wildcard certificate from a certificate authority'
  • update this line of code in app.py to app.config['ASK_APPLICATION_ID'] = '<your alexa application id goes here>'
  • update the code by running zappa update production
  • to undeploy the code run zappa undeploy production

icon from https://commons.wikimedia.org/wiki/File:Simpleicons_Business_stopwatch.svg

s-watch-alexa-skill's People

Contributors

brettbeatty avatar pauldeden avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

s-watch-alexa-skill's Issues

Invalid repo-meta

For .repo-meta.yml to federate properly with the CMDB, some fields have to be values the CMDB can accept. Below is a list of values repo_meta_to_cmdb could not find in the CMDB, grouped by type. Each type has a link to the allowed values in the CMDB, and each item has a link to the query repo_meta_to_cmdb used to look for the item. Please update .repo-meta.yml or the CMDB, whichever is appropriate, to resolve this issue. The list below will update whenever .repo-meta.yml changes to update progress towards resolution.

technology (allowed values)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.