Install Flask-Ask for Alexa
$ pip install flask-ask
Start your favorite Python dev editor
$ jupyter notebook
https://raw.githubusercontent.com/UkiDLucas/uki.guru/master/Alexa/skill_001.py
https://github.com/UkiDLucas/uki.guru/blob/master/Alexa/templates.yaml
https://ngrok.com/
- unzip
- put in Applications folder
- click to open
- you should get a message "ngrok was blocked from opening because it is not from an identified developer"
- got to System Preferences -> Security & Privacy
- click "Open Anyway"
- run from Terminal:
Make sure you use the same email and you have set up your Alexa Echo device with.
https://developer.amazon.com/edw/home.html#/
https://github.com/UkiDLucas/uki.guru/blob/master/Alexa/templates.yaml
Test code running locally via HTTPS using ngrok
$ python skill_001.py * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) * Restarting with stat * Debugger is active! * Debugger pin code: 275-052-815
https://ngrok.com/
- unzip
- put in Applications folder
- click to open
- you should get a message "ngrok was blocked from opening because it is not from an identified developer"
- got to System Preferences -> Security & Privacy
- click "Open Anyway"
- run from Terminal:
$ /Applications/ngrok http 5000
You will need the HTTPS URL form ngrok
ngrok by @inconshreveable (Ctrl+C to quit) Session Status online Version 2.1.18 Region United States (us) Web Interface http://127.0.0.1:4040 Forwarding http://908cd95a.ngrok.io -> localhost:5000 Forwarding https://908cd95a.ngrok.io -> localhost:5000 Connections ttl opn rt1 rt5 p50 p90 0 0 0.00 0.00 0.00 0.00
Log in to Amazon Apps and Services
Make sure you use the same email and you have set up your Alexa Echo device with.
https://developer.amazon.com/edw/home.html#/
Alexa Skills Kit
Easily add new skills to Alexa
No comments:
Post a Comment