This skill will provide you your latest sport activities on Strava for:
- Running
- Biking
- Swimming It will also tell you your weight if provided/synced to Strava.
- Copy Python script
- Modify your API key
- Mod your nginx to proxy to your stravlexa python script
- Setup Alexa Skill with provided intent schema
This skill uses Flask-Ask, a Python micro-framework that simplifies developing Alexa skills. Great work John Wheeler! With a little knowledge of Python and Flask it is very simple to extend.
Note:
- If you're not confident using Nginx see the beginners guide!
- In order to be able to interact with Amazon Alexa, your endpoint either has to provide a certificate from a trusted certificate authority or you have to upload a self-signed certificate in X.509 format.
- Add the following entry to your Nginx configuration (you may find it at /etc/nginx/sites-available/default):
location /stravlexa {
rewrite ^/stravlexa/?(.*)$ /$1 break;
proxy_pass http://localhost:5000;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
}
-
Restart Nginx.
-
Start the CALexa skill as well:
python /yourpathtocstravlexa/stravlexa.py
Your service will now be available via https://yourdomain/stravlexa/
The configuration process is straigt forward, as known by other skills.