Upgrade to Pro — share decks privately, control downloads, hide ads and more …

OK Google, 今何度?〜オムロンセンサ/isaax/Ambientを使って部屋の温度を知る〜

OK Google, 今何度?〜オムロンセンサ/isaax/Ambientを使って部屋の温度を知る〜

2019年3月13日のisaax勉強会#27のLT資料です。

Yuta Yasugahira

March 13, 2019
Tweet

More Decks by Yuta Yasugahira

Other Decks in Technology

Transcript

  1. ࿩͢͜ͱɾ࿩͞ͳ͍͜ͱ Ambient ΞϓϦͷมߋΛGitHub΁൓ө isaax͕ΞϓϦͷมߋΛݕ஌ isaax͕isaaxd(*1)΁ΞϓϦΛ഑෍ Ϋϥ΢υ΁ͷηϯασʔλॻࠐ Ϋϥ΢υ͔Βͷηϯασʔλಡࠐɾग़ྗ αϯϓϧΞϓϦΛมߋͯ͠ ηϯασʔλΛՄࢹԽ͢Δͧʂ Raspberry

    Pi্Ͱηϯα
 σʔλΛՄࢹԽͰ͖ͨ(*2) ϋ ϯ ζ Φ ϯ ͷ ಺ ༰ ൃ ల ՝ ୊ ͬ͘͟Γ࣮ͨ͠૷ͷྲྀΕ ࿩͞ͳ͍ ࿩͢ *1 Raspberry PiʹΠϯετʔϧ͞ΕͨisaaxͷΤʔδΣϯτ *2 ՄࢹԽͨ͠ηϯασʔλ͸LAN಺Ͱͳ͍ͱ֬ೝͰ͖ͳ͍ ৄࡉͳखॱ͸isaaxษڧձͷࢿྉ΍ࢲͷϒϩάΛ ͝ཡ͍ͩ͘͞ɻ࠷ޙʹ·ͱΊͯURLΛه͠·͢ɻ
  2. Ϋϥ΢υ΁ͷηϯασʔλͷॻࠐ ˎAmbientͷར༻४උΛ͢Δ ˎisaaxd͕࣮ߦ͢ΔstartεΫϦϓτΛमਖ਼͢Δ • Raspberry Pi্ͷηϯασʔλΛΫϥ΢υʹ্͛Δํ๏͸৭ʑ͋Δ • ࠓճ͸ૉ௚ʹखॱ͕༻ҙ͞Ε͍ͯΔAmbientΛ࢖͏ • ΞΧ΢ϯτొ࿥ɺνϟωϧ࡞੒ɺID/Ωʔͷ֬ೝΛ࣮ࢪ

    • ΍ͬͯΔ͜ͱ؆୯ & खॱ΋ஸೡͳͷͰɺಛʹ໎Θͳ͍͸ͣ • ఆظతʹηϯασʔλΛAmbient΁
 ॻ͖ࠐΉΑ͏startεΫϦϓτΛमਖ਼ • isaax؀ڥม਺αʔϏεΛ࢖͏ͱAmbientͷ
 ID/ΩʔΛϓϩάϥϜʹॻ͖ࠐ·ͣʹࡁΉ • AmbientͰάϥϑ͕ඳը͞ΕΔͱ͏Ε͍͠ʂ • ͜ΕͰ԰֎͔ΒͰ΋෦԰ͷԹ౓Λ֬ೝͰ͖Δ
  3. ˎݺͼ͔͚ͷ޻෉ͰDefault Welcome IntentΛলུ ˎΤΠϦΞεΛ࢖ͬͯΞϓϦ໊Λলུ VUIͷϢʔβϏϦςΟͷվળ ʮΞϓϦ໊Λ࢖ͬͯϑϨʔζʯͰDefault Welcome IntentΛলུʢઃఆෆཁʣ ㅟ ㅟ

    ㅟ ㅟ ㅟ ㅟ ㅟ ㅟ Τ Π Ϧ Ξ ε ର࿩͸̍ճͰࡁΉ͕·ͩΠϚΠν Google HomeΞϓϦͰઃఆ ʢগ͠༨ܭͳϑϨʔζ͸ೖΔ͕ʣ ʮࠓԿ౓ʯͰ෦԰ͷԹ౓Λ஌Εͨ
  4. • ΦϜϩϯηϯα/isaax/AmbientΛ࢖ͬͯΫϥ΢υ্Ͱ෦԰ͷԹ౓ΛՄࢹԽ • Google HomeΛ࢖ͬͯʮࠓԿ౓ʁʯͰ෦԰ͷԹ౓Λ஌ΕΔΑ͏ʹͨ͠ ·ͱΊ 16.8℃Ͱ͢ OK Google, ࠓԿ౓ʁ

    ͸͍ɻԹ౓ܭͷςετόʔδϣϯͰ͢ɻ 16.8℃Ͱ͢ OK Google, ࠓԿ౓ʁ ΍Γ͔ͨͬͨ͜ͱ ·͊ɺΑ͠ʂʢΑΓྑ͍΍Γํ͝ଘ஌ͷํڭ͍͑ͯͩ͘͞ʣ ΍ͬͨ͜ͱ
  5. • isaaxษڧձ#25ͷϋϯζΦϯςΩετ
 ΦϜϩϯઈରѹηϯαධՁϞδϡʔϧΛRaspberryPiʹܨ͍ͰՄࢹԽ(ೖ໳ฤ)
 <https://camp.isaax.io/ja/examples/2smpb-02e-raspberry-pi> • isaaxษڧձ#25ͷϋϯζΦϯΛ෮शͨ͠ϒϩάهࣄ
 ΦϜϩϯઈରѹηϯα2SMPB-02EΛ࢖ͬͯΈͨ
 <http://sonomirai.hatenablog.com/entry/2019/02/13/002711> • Ϋϥ΢υ΁ͷηϯασʔλͷॻࠐͰࢀর͢ΔϋϯζΦϯςΩετ


    ΦϜϩϯ؀ڥηϯαɾAmbientɾisaaxϋϯζΦϯ
 <https://camp.isaax.io/ja/examples/visualize_omron_iot_sensor_with_ambient_and_isaax> • ηϯασʔλॻࠐͷίʔυ
 <https://github.com/yasugahira0810/2smpb02e-with-isaax/blob/master/sample2.py> • ηϯασʔλಡऔͷίʔυɾઃఆ
 index.js<https://gist.github.com/yasugahira0810/657ed179825c8a71686dc249d69a6624>
 package.json<https://gist.github.com/yasugahira0810/97dd92d43cc37b10da55eb6fdc6c0d87> • VUIͷϢʔβϏϦςΟͷվળͷৄࡉͳखॱʹ͍ͭͯͷϒϩάهࣄ
 Google HomeͱobnizͰ෦԰ͷిؾΛON/OFF͢Δ
 <http://sonomirai.hatenablog.com/entry/2018/12/10/083146> ࢀߟ