【Dive into mixi night】Roomba(ルンバ)とフロントエンドとIoT

6deb85f3d04335acaf5a581718e04231?s=47 umesan
July 06, 2018

【Dive into mixi night】Roomba(ルンバ)とフロントエンドとIoT

Dive into mixi nightI! #2 枠での資料です。

# 資料内参考リンク

## ファイトリーグ
https://fight-league.com/?sd

## 「ストライクショット!」と叫ぶとRoombaが走り出す最高のUX
https://youtu.be/DNpUF76Thww

## Roomba(ルンバ) とマイホームとIoT
https://qiita.com/umesan/items/ea9d1603d139387b6a97

## homebridge-roomba
https://www.npmjs.com/package/homebridge-roomba

6deb85f3d04335acaf5a581718e04231?s=128

umesan

July 06, 2018
Tweet

Transcript

  1. 3PPNCBʢϧϯόʣͱϑϩϯτΤϯυͱ*P5  കࢁ௚थ גࣜձࣾϛΫγΟ 9'-"(ελδΦ Ϟϯετࣄۀຊ෦ ϑϩϯτΤϯυσβΠϯνʔϜ ϑΝΠτϦʔάࣄۀຊ෦ 6*σβΠϯάϧʔϓ <%JWFJOUPNJYJ

    OJHIUʂ >
  2. 1 ࣗݾ঺հ

  3. 2 ࣗݾ঺հ കࢁ௚थʢ͏Ί΍·ͳ͓͖ʣ  גࣜձࣾϛΫγΟ 9'-"(ελδΦ  Ϟϯετࣄۀຊ෦ ϑϩϯτΤϯυσβΠϯνʔϜ 

    ϑΝΠτϦʔάࣄۀຊ෦ 6*σβΠϯάϧʔϓ ʮϞϯελʔετϥΠΫʯʮϑΝΠτϦʔάʯɺ εϚʔτϑΥϯήʔϜΞϓϦͷެࣜαΠτͷӡ༻୲౰
  4. 3 ஔ͍ͯܨ͛ͯ߈ܸʂ εϚʔτϑΥϯͰ༡΂ΔϚεͷΨνϯίότϧʂ <13>ϑΝΠτϦʔά

  5. 3 ஔ͍ͯܨ͛ͯ߈ܸʂ εϚʔτϑΥϯͰ༡΂ΔϚεͷΨνϯίότϧʂ <13>ϑΝΠτϦʔά

  6. 5 ஔ͍ͯܨ͛ͯ߈ܸʂ εϚʔτϑΥϯͰ༡΂ΔϚεͷΨνϯίότϧʂ <13>ϑΝΠτϦʔά ٻΊΒΕΔͷ͸ɺ JGจΛಡΈղ͘ྗͱɺ ૉૣͯ͘ਖ਼֬ͳܭࢉʂ ΤϯδχΞʹΦεεϝʂ

  7. 3 ˗ 7VFKT 7VFY 18" 4FSWJDF8PSLFS ".1 8FCQBDL (VMQ &4

    &4-JOU &TEPD )5.- 1VH 4BTT 1PTU$44 $PNQBTT  4UZMFMJOU #&. 4."$44 BJHJT (JU :BSO +FOLJOT (PPHMF"QQT4DSJQU /HJOY /PEFKT "84 )551 <13>ϑΝΠτϦʔά ެࣜαΠτͰɺήʔϜ͕΋ͬͱָ͘͠ͳΔίϯςϯπΛ഑৴தɻ
  8. 7 ˗ੈքྦྷܭར༻ऀ਺  ສਓಥഁʂ ˗࠷େਓಉ࣌ʹָ͠ΊΔʮͻͬͺΓϋϯςΟϯά31(ʯ <13>ϞϯελʔετϥΠΫ

  9. 8 ϞϯελʔεϥΠΫͷܾΊ୆ࢺɺ ʮετϥΠΫγϣοτʂʯͱڣͿͱɺ 3PPNCBʢϧϯόʣ͕૸Γग़͢࠷ߴͷ69Λ࡞Δ ϑϩϯτΤϯυͷٕज़Ͱ3PPNCBʢϧϯόʣΛಈ͔͢

  10. 9 ͳͥ3PPNCBͳͷ͔ʁ  ·Δ͍ɻ  นʹ͋ͨΔͱ௓ͶฦΔɻ  ఢʢ͝ΈʣΛ౗͢ʢআڈʣɻ

  11. 10 ʮετϥΠΫγϣοτʂʯͱڣͿͱ3PPNCB͕૸Γग़͢࠷ߴͷ69ʂ IUUQTZPVUVCF%/Q6'5IXX

  12. 11 ඞཁͳ΋ͷ  3PPNCBʢ8J'JରԠϞσϧʣ  "QQMF8BUDI J1IPOF 4JSJରԠσόΠε  3BTQCFSSZ1J.BD

     &MHBUP &WF ʻ)PNF,JUɿ"QQMFͷఏڙ͢ΔՈి؅ཧͷ࢓૊ΈʼରԠΞϓϦ  /PEFKT  )PNFCSJEHF )PNFLJUΛΤϛϡϨʔτͨ͠/PEF+4αʔό  IPNFCSJEHFSPPNCB 3PPNCBΛಈ͔ͨ͢Ίʹࣗ࡞ͨ͠ϓϥάΠϯ ϋʔυ ιϑτ
  13. ϋʔυ :PV "QQMF8BUDI J1IPOF 3BTQCFSSZ1J 3PPNCB ιϑτ 4JSJ &MHBUP &WF

    /PEFKT )PNFCSJEHF IPNFCSJEHFSPPNCB ߏ੒ 12 શମߏ੒ ᶃ ᶄ ᶅ ᶆ ᶇ ᶈ ᶉ ᶊ
  14. ᶃ ʮετϥΠΫγϣοτʯͱڣͿ ᶄ "QQMF8BUDIͷ4JSJ͕Ի੠Λೝࣝ ᶅ 4JSJΛܦ༝ͯ͠ɺ J1IPOFʹΠϯετʔϧ͞Ε͍ͯΔ&MHBUP &WF͕ݺͼग़͞ΕΔɻ &MHBUP &WFʹࣄલొ࿥͞Ε͍ͯΔʮ

    ετϥΠΫγϣοτʯͱ͍͏ʮγʔϯʯ ͕࣮ߦ͞Εɺᶆͷ)PNFCSJEHFαʔόʹʮ 300.#"ͷిݯΛ0/ʯʹ͢Δͱ ͍͏ʮΞΫγϣϯʯΛϦΫΤετ ᶆ )PNFCSJEHFαʔό͕ʮΞΫγϣϯʯΛड͚औΓɺ IPNFCSJEHFSPPNCBΛ௨ͯ͠ɺ ᶇͷ3PPNCBʹNRUUͱ͍͏ϓϩτίϧͰɺ\`TUBUF``TUBSU`^Λ QVCMJTI ᶇ TUBSUϝοηʔδΛड৴ͨ͠3PPNCB͕૟আΛ։࢝ ᶈ ॲཧ׬ྃͷϨεϙϯεΛฦ٫ ᶉ ઃఆ׬ྃͷϝοηʔδΛ௨஌ ᶊ ઃఆ׬ྃͷϝοηʔδΛϨϯμϦϯά 13 ॲཧͷྲྀΕ
  15. ᶃ ʮετϥΠΫγϣοτʯͱڣͿ ᶄ "QQMF8BUDIͷ4JSJ͕Ի੠Λೝࣝ ᶅ 4JSJΛܦ༝ͯ͠ɺ J1IPOFʹΠϯετʔϧ͞Ε͍ͯΔ&MHBUP &WF͕ݺͼग़͞ΕΔɻ &MHBUP &WFʹࣄલొ࿥͞Ε͍ͯΔʮ

    ετϥΠΫγϣοτʯͱ͍͏ʮγʔϯʯ ͕࣮ߦ͞Εɺᶆͷ)PNFCSJEHFαʔόʹʮ 300.#"ͷిݯΛ0/ʯʹ͢Δͱ ͍͏ʮΞΫγϣϯʯΛϦΫΤετ ᶆ )PNFCSJEHFαʔό͕ʮΞΫγϣϯʯΛड͚औΓɺ IPNFCSJEHFSPPNCBΛ௨ͯ͠ɺ ᶇͷ3PPNCBʹNRUUͱ͍͏ϓϩτίϧͰɺ\`TUBUF``TUBSU`^Λ QVCMJTI ᶇ TUBSUϝοηʔδΛड৴ͨ͠3PPNCB͕૟আΛ։࢝ ᶈ ॲཧ׬ྃͷϨεϙϯεΛฦ٫ ᶉ ઃఆ׬ྃͷϝοηʔδΛ௨஌ ᶊ ઃఆ׬ྃͷϝοηʔδΛϨϯμϦϯά 14 ॲཧͷྲྀΕ
  16. ᶃ ʮετϥΠΫγϣοτʯͱڣͿ ᶄ "QQMF8BUDIͷ4JSJ͕Ի੠Λೝࣝ ᶅ 4JSJΛܦ༝ͯ͠ɺ J1IPOFʹΠϯετʔϧ͞Ε͍ͯΔ&MHBUP &WF͕ݺͼग़͞ΕΔɻ &MHBUP &WFʹࣄલొ࿥͞Ε͍ͯΔʮ

    ετϥΠΫγϣοτʯͱ͍͏ʮγʔϯʯ ͕࣮ߦ͞Εɺᶆͷ)PNFCSJEHFαʔόʹʮ 300.#"ͷిݯΛ0/ʯʹ͢Δͱ ͍͏ʮΞΫγϣϯʯΛϦΫΤετ ᶆ )PNFCSJEHFαʔό͕ʮΞΫγϣϯʯΛड͚औΓɺ IPNFCSJEHFSPPNCBΛ௨ͯ͠ɺ ᶇͷ3PPNCBʹNRUUͱ͍͏ϓϩτίϧͰɺ\`TUBUF``TUBSU`^Λ QVCMJTI ᶇ TUBSUϝοηʔδΛड৴ͨ͠3PPNCB͕૟আΛ։࢝ ᶈ ॲཧ׬ྃͷϨεϙϯεΛฦ٫ ᶉ ઃఆ׬ྃͷϝοηʔδΛ௨஌ ᶊ ઃఆ׬ྃͷϝοηʔδΛϨϯμϦϯά 15 ॲཧͷྲྀΕ
  17. ᶃ ʮετϥΠΫγϣοτʯͱڣͿ ᶄ "QQMF8BUDIͷ4JSJ͕Ի੠Λೝࣝ ᶅ 4JSJΛܦ༝ͯ͠ɺ J1IPOFʹΠϯετʔϧ͞Ε͍ͯΔ&MHBUP &WF͕ݺͼग़͞ΕΔɻ &MHBUP &WFʹࣄલొ࿥͞Ε͍ͯΔʮ

    ετϥΠΫγϣοτʯͱ͍͏ʮγʔϯʯ ͕࣮ߦ͞Εɺᶆͷ)PNFCSJEHFαʔόʹʮ 300.#"ͷిݯΛ0/ʯʹ͢Δͱ ͍͏ʮΞΫγϣϯʯΛϦΫΤετ ᶆ )PNFCSJEHFαʔό͕ʮΞΫγϣϯʯΛड͚औΓɺ IPNFCSJEHFSPPNCBΛ௨ͯ͠ɺ ᶇͷ3PPNCBʹNRUUͱ͍͏ϓϩτίϧͰɺ\`TUBUF``TUBSU`^Λ QVCMJTI ᶇ TUBSUϝοηʔδΛड৴ͨ͠3PPNCB͕૟আΛ։࢝ ᶈ ॲཧ׬ྃͷϨεϙϯεΛฦ٫ ᶉ ઃఆ׬ྃͷϝοηʔδΛ௨஌ ᶊ ઃఆ׬ྃͷϝοηʔδΛϨϯμϦϯά 16 ॲཧͷྲྀΕ
  18. ᶃ ʮετϥΠΫγϣοτʯͱڣͿ ᶄ "QQMF8BUDIͷ4JSJ͕Ի੠Λೝࣝ ᶅ 4JSJΛܦ༝ͯ͠ɺ J1IPOFʹΠϯετʔϧ͞Ε͍ͯΔ&MHBUP &WF͕ݺͼग़͞ΕΔɻ &MHBUP &WFʹࣄલొ࿥͞Ε͍ͯΔʮ

    ετϥΠΫγϣοτʯͱ͍͏ʮγʔϯʯ ͕࣮ߦ͞Εɺᶆͷ)PNFCSJEHFαʔόʹʮ 300.#"ͷిݯΛ0/ʯʹ͢Δͱ ͍͏ʮΞΫγϣϯʯΛϦΫΤετ ᶆ )PNFCSJEHFαʔό͕ʮΞΫγϣϯʯΛड͚औΓɺ IPNFCSJEHFSPPNCBΛ௨ͯ͠ɺ ᶇͷ3PPNCBʹNRUUͱ͍͏ϓϩτίϧͰɺ\`TUBUF``TUBSU`^Λ QVCMJTI ᶇ TUBSUϝοηʔδΛड৴ͨ͠3PPNCB͕૟আΛ։࢝ ᶈ ॲཧ׬ྃͷϨεϙϯεΛฦ٫ ᶉ ઃఆ׬ྃͷϝοηʔδΛ௨஌ ᶊ ઃఆ׬ྃͷϝοηʔδΛϨϯμϦϯά 17 ॲཧͷྲྀΕ
  19. ᶃ ʮετϥΠΫγϣοτʯͱڣͿ ᶄ "QQMF8BUDIͷ4JSJ͕Ի੠Λೝࣝ ᶅ 4JSJΛܦ༝ͯ͠ɺ J1IPOFʹΠϯετʔϧ͞Ε͍ͯΔ&MHBUP &WF͕ݺͼग़͞ΕΔɻ &MHBUP &WFʹࣄલొ࿥͞Ε͍ͯΔʮ

    ετϥΠΫγϣοτʯͱ͍͏ʮγʔϯʯ ͕࣮ߦ͞Εɺᶆͷ)PNFCSJEHFαʔόʹʮ 300.#"ͷిݯΛ0/ʯʹ͢Δͱ ͍͏ʮΞΫγϣϯʯΛϦΫΤετ ᶆ )PNFCSJEHFαʔό͕ʮΞΫγϣϯʯΛड͚औΓɺ IPNFCSJEHFSPPNCBΛ௨ͯ͠ɺ ᶇͷ3PPNCBʹNRUUͱ͍͏ϓϩτίϧͰɺ\`TUBUF``TUBSU`^Λ QVCMJTI ᶇ TUBSUϝοηʔδΛड৴ͨ͠3PPNCB͕૟আΛ։࢝ ᶈ ॲཧ׬ྃͷϨεϙϯεΛฦ٫ ᶉ ઃఆ׬ྃͷϝοηʔδΛ௨஌ ᶊ ઃఆ׬ྃͷϝοηʔδΛϨϯμϦϯά 18 ॲཧͷྲྀΕ
  20. 19 IPNFCSJEHFSPPNCB  &4Ͱॻ͔Εͨ3PPNCBૢ࡞༻ͷIPNFCSJEHFϓϥάΠϯ  OQNύοέʔδͱͯ͠ެ։ ৄࡉɿIUUQTXXXOQNKTDPNQBDLBHFIPNFCSJEHFSPPNCB

  21.  +BWB4DSJQUʢ$PGGFF4DSJQUʣͷ஌ࣝͰIVCPUΛઃఆ 20 ௥ՃΧελϚΠζɿ૟আঢ়گΛIVCPUͰ4MBDLʹ௨஌ ৄࡉ ɿIUUQTRJJUBDPNVNFTBOJUFNTFBEECB

  22. 21 Ոఉ಺*P5ͷεεϝ ·ͱΊ

  23. 22 Ոఉ಺*P5ͷεεϝ IUNM 1VH FKT DTT TBTT QPTUDTT #&. 00$44

    4."$44  K2VFSZ 7VFKT 3FBDUKT .BSJPOFUUFKT 8FCQBDL (VMQ (SVOU "UPN 4VCMJNF5FYU Visual Studio Code, +FOLJOT 4MBDL +JSB $ISPNF 4BGBSJʜ /PEFKT $PGGFFTDSJQU &4 &TMJOU  )PNF,JU 3BTQCFSSZ1J 4JSJ 4MBDL"1* Incoming Webhooks, IVCPU /QN (JU)VC )FSPLV 7JN 4IFMM4DSJQU J5FSN 3PPNCB )VF .JDSPCPUQVTI *3,JUʜ ීஈͷۀ຿ྖҬ Ոఉ಺*P5ͷྖҬ
  24. 23 Ոఉ಺*P5ͷεεϝ  ࣗಈԽɾޮ཰Խɾվળͷҙࣝɺ ۀ຿ʹ΋Ԡ༻Ͱ͖Δ஌͕ࣝ਎ʹͭ͘ ʢTUZMFMJOUDPOGJHTUBOEBSEΛࣗ࡞ͷύοέʔδͰ্ॻ͖ͯ͠೔ຊޠԽʣ  4MBDLɺIVCPU ʹৄ͘͠ͳΔɻ ˠ

    ఆྫใࠂΛ OBPLJVNFZBNB CPUͰࣗಈԽɻ  OQN ύοέʔδͷ࡞ΓํΛ֮͑Δɻˠ ීஈ࢖͍ͬͯΔύοέʔδͷෆຬΛղফɻ
  25. Thank you! 9'-"(ελδΦͷʮϑϩϯτΤϯυΤϯδχΞʯʹڵຯ͋Δํ͓ؾܰʹ͓੠͕͚͍ͩ͘͞ɻ