LoginSignup
2
1

More than 5 years have passed since last update.

Alexa + IoT (esp8266) Custom Skill(2) IoT連携

Last updated at Posted at 2017-02-08

IMGP6414.JPG

前回と同様のAlexa関係となります

前回は、custom Skill実装の概要やサンプルの説明でした
今回は、IoT連携部分の説明としています。

code :

参考のGit : https://github.com/kuc-arc-f/alexa-custom-esp8266-1
Lanmbda function (python): Lambda-function.py

lambda_handler から、on_intent()が呼ばれ、
intentName検証後、rest-API経由でセンサー値と取り出し
Alexaに 出力メッセージ渡しています。

*) cutom skill 設定:
Invocation Name: sensor

IntentSchema:
text/IntentSchema.json

sampleUtterrances:
text/sampleUtterrances.txt

rest-API のresponse:
text/rest-data.json
*) esp8266からの更新処理を追加し、
jsonレスポンスを出力する機能の準備が必要です。

esp8266 ドライバ:

/esp8266

Youtube:

前回と同じ動画ですが、最終目標として、キーワードを音声入力して
alexaに IoT連携センサー値を、発言してもらうデモとなります。


関連のページ: Alexa + IoT (esp8266) Custom Skill (1)


関連のまとめ:Alexa + IoT のリンク集となります。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1