Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
projects:internetofthings:iotaiuto_skill [2019/11/14 11:32] – [API] denfra | projects:internetofthings:iotaiuto_skill [2020/10/01 11:34] (current) – [AWS] scipio | ||
---|---|---|---|
Line 8: | Line 8: | ||
participant " | participant " | ||
participant "skill AWS iotaiuto" | participant "skill AWS iotaiuto" | ||
- | participant "db users" as cloud order 40 #00FFFF | + | participant "cloud iotaiuto" as cloud order 40 #00FFFF |
- | participant " | + | participant "reverse |
participant " | participant " | ||
Line 46: | Line 46: | ||
- | ===== API ===== | + | ===== Flusso dati ===== |
- | ogni comando che arriva da ' | + | ogni comando che arriva da alexa si traduce in una richiesta verso la skill ' |
* event | * event | ||
* context | * context | ||
Line 58: | Line 58: | ||
TODO | TODO | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
Line 67: | Line 70: | ||
</ | </ | ||
+ | ===== Cloud iotaiuto ===== | ||
+ | |||
+ | Questo webservice REST offre i parametri di funzionamento del servizio lambda AWS. In particolare alla richiesta di uno **user_id** risponde con i parametri necessari ad alexa per instaurare una comunicazione con l' | ||
+ | |||
+ | test funzionali (cd / | ||
+ | * make test-token: verifica la validità del token | ||
+ | * make test-user: torna i dati relativi all' | ||
===== AWS ===== | ===== AWS ===== | ||
+ | * AWS account root user: amazon@csgalileo.org | ||
+ | * IAM user: https:// | ||
+ | * ID: 049753375854 | ||
+ | * username: stefano.scipioni | ||
+ | * region: Europa (Irlanda) eu-west-1 | ||
+ | * [[https:// | ||
+ | * Alexa developer console: https:// | ||
+ | |||
+ | * lambda service: iotaiuto | ||
+ | |||
+ | I codici sorgenti sono in ~/ | ||
+ | |||
+ | visualizzare i log di lambda AWS | ||
+ | < | ||
+ | su - iotaiuto | ||
+ | make aws-log | ||
+ | </ | ||
+ | |||
+ | deploy del servizio lambda | ||
+ | < | ||
+ | su - iotaiuto | ||
+ | make aws-deploy | ||
+ | </ | ||
+ | |||
+ | test del servizio lambda: chiedere ad alexa " | ||
==== Creare una skill iotaiuto ==== | ==== Creare una skill iotaiuto ==== | ||
Line 111: | Line 146: | ||
==== Pubblicare su AWS ==== | ==== Pubblicare su AWS ==== | ||
+ | * https:// | ||
[DEVELOP] Go to [[https:// | [DEVELOP] Go to [[https:// | ||
Line 148: | Line 184: | ||
In [DEVELOP.1] compile 3 redirect urls | In [DEVELOP.1] compile 3 redirect urls | ||
+ | |||
+ | In [DEVELOP.1] disable **Send Alexa Events** in Permission tab | ||
Create access key from [AWS] -> " | Create access key from [AWS] -> " |