Skip to content

ajsimon1/alexa-traffic-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Custom Traffic Alexa Skill

A scheduled task would run every morning to pull the traffic data and store results in the exportable_json variable. An endpoint was created as a flask view that would return var along with mimetype application/json, this was a requirement for alexa to process the content

@app.route('/alexa_flash')
@login_required
def alexa_flash():
    json_data = exportable_json
    return Response(response=json_data, mimetype='application/json')

check the alexa request/response docs to confirm if new response format is needed. The main.py file works as expected

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages