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

#ひげボタン を使って楽しくちょっと便利な生活 #soracomug

#ひげボタン を使って楽しくちょっと便利な生活 #soracomug

Kihara, Takuya

November 12, 2019
Tweet

More Decks by Kihara, Takuya

Other Decks in Technology

Transcript

  1. 403"$0.6(ࡳຈ
    !UBDDL
    ͻ͛ϘλϯΛ࢖ͬͯ
    ָͪ͘͠ΐͬͱศརͳੜ׆
    ೥݄೔

    View full-size slide

  2. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH

    • ໊લ

    tacck / ໦ݪ ୎໵

    • ॴଐ

    גࣜձࣾϊʔεσΟςʔϧ

    • ओ࠵

    • ΏΔWebษڧձ@ࡳຈ

    • εϚʔτεϐʔΧʔͰ༡΅͏ձ@ࡳຈ

    • ޷͖ͳϑΟΪϡΞεέʔτͷٕ

    εϓϨουɾΠʔάϧ

    View full-size slide

  3. 403"$0.6(ࡳຈ
    !UBDDL
    ͻ͛ϘλϯΛ࢖ͬͯ
    ָͪ͘͠ΐͬͱศརͳੜ׆
    ೥݄೔

    View full-size slide

  4. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ༣ศड͚

    View full-size slide

  5. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ༣ศड͚ͷ௨஌γεςϜ

    View full-size slide

  6. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ༣ศड͚ͷ௨஌γεςϜ
    • ௞ିϚϯγϣϯೖΓޱͷू߹ܕ༣ศड͚ɻ

    • ֎͔Β͸ɺ෺͕ೖ͍ͬͯΔ͔Ͳ͏͔͸ݟ͑ͳ͍ɻ

    • ຖ೔༣ศ(΍޿ࠂ)͕ೖ͍ͬͯΔͱ͸ݶΒͳ͍ɻ

    • ങ͍෺ͨ͠ޙͳͲ྆ख͕;͕͍ͬͯ͞Δ࣌ʹɺ

    ։͚ͳ͍͍͔ͯ͘Ͳ͏͔෼͔͍ͬͯΔͱɺ

    ͪΐͬͱετϨε௿ݮɻ

    View full-size slide

  7. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    Ͳ͏΍Δ͔

    View full-size slide

  8. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ηϯαʔ͚ͭΕ͹ྑ͍͚Ͳ
    • ։ด෦෼ʹԿ͕͔͠ηϯαʔ͚ͭΕ͹ྑ͍ͷ͸Θ͔Δɻ

    • ͔͠͠ɺͲ͏΍ͬͯσʔλΛૹΕ͹?

    • ϥζύΠ? ESP32?

    • ຊ౰ʹศརʹͳΔ͔ɺ·͔ͣ֬Ί͍ͨɻ

    • ి஑Ͱ௕ظؒӡ༻Մೳɾ௿ϝϯςφϯεͳ΋ͷɻ

    View full-size slide

  9. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ͻ͛Ϙλϯ

    View full-size slide

  10. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ͜Εͩ

    View full-size slide

  11. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ࡐྉ
    • SORACOM LTE-M Button Plus : 1ݸ

    9,457ԁ (੫ࠐɾ഑ૹྉࠐ)

    • ࣓ؾεΠον : 1ݸ 

    677ԁ (੫ࠐɾ഑ૹྉࠐ)

    • খ͞Ίͷ࣓ੴ : దྔ (100ۉͰങ͑Δ΋ͷ)

    110ԁ (੫ࠐ)

    • ߹ܭ: 10,244ԁ

    View full-size slide

  12. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ࢓૊Έ
    Button
    SORACOM
    Beam
    AWS

    API Gateway
    Lambda
    Slack
    iPhone

    View full-size slide

  13. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    4FSWFSMFTT'SBNFXPSL$-*
    • AWS Lambda ͱ API Gateway ͷઃఆɾσϓϩΠ͸

    Serverless Framework CLI Λར༻ɻ

    • ઃఆΛYAMLͰهड़ͯ͠ɺίϚϯυͰσϓϩΠɻ

    → API Gateway ͷઃఆͱɺLambda ΋ؚΊͯͷσϓϩΠΛɺ

    ɹ Ұ౓ʹ࣮ߦͯ͘͠ΕΔɻ

    • https://serverless.com/cli/

    View full-size slide

  14. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ઃஔ ࿦ཧ

    View full-size slide

  15. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ઃஔ ෺ཧ

    View full-size slide

  16. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ઃஔ ෺ཧ

    ࣓ੴ

    View full-size slide

  17. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ઃஔ ෺ཧ

    ࣓ؾεΠον
    SORACOM LTE-M
    Button Plus

    View full-size slide

  18. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ݁Ռ

    View full-size slide

  19. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ݁Ռ
    • ͔֬ʹΘ͔Δɻ

    • ͨͩɺ࣓ੴͳͲͷݻఆํ๏ͷࢼߦࡨޡ͕͋ͬͯɺ

    ·ͩ҆ఆӡ༻·Ͱ͸͍ͬͯͳ͍ɻ

    • ͦΕͰ΋ɺ௨஌͘Δͱָ͍͠ɻ

    • ௨஌͕དྷ͚ͨͲɺத਎͕ͳ͍࣌΋ɻɻɻ

    View full-size slide

  20. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ՝୊
    • ࣓ੴ΍ηϯαʔͷݻఆͷͤ͞ํ

    • ࣓ੴͱηϯαʔͷڑ཭

    • ࣓ੴͷܗ

    • ։ด෦΁ͷ࣓ੴͷઃஔํ๏

    • ։ด෦ͷ֖͸ϓϥενοΫɻ

    ௞ିͳͷͰɺ͋·Γ͕ͬͪΓͨ͠ݻఆ͸ͮ͠Β͍ɻ

    →ݱঢ়͸ϚεΩϯάςʔϓͰݻఆ

    • ʮLࣈܕͷ΋ͷʯΛ࢖ͬͯɺݻఆ͠΍͢͞Λ͋͛ͭͭɺ

    ηϯαʔͱ࣓ੴͷڑ཭Λ͚͍ۙͮͯΔɻ

    View full-size slide

  21. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    ·ͱΊ
    • SORACOM LTE-M Button γϦʔζ͸ͱͯ΋ศར

    • ߪೖޙɺΞΫςΟϕʔγϣϯ͢Ε͹͙͢ʹ࢖༻։࢝ɻ

    • SORACOM Beam Ͱɺࣗ෼ͷ޷͖ͳαʔό΁సૹɻ

    • SORACOM Harvest Λ࢖͑͹ɺσʔλऩू΋͙͢ɻ

    • ௨৴ʮҎ֎ʯʹ஫ྗͰ͖Δɻ

    • Serverless Framework CLI ௒ઈศར

    • Lambda ͱ API Gateway ΛҰׅ؅ཧͰ͖Δͷ͸͋Γ͕͍ͨɻ

    • ࠷ऴతʹ͸෺ཧΨϯόϧ

    View full-size slide

  22. !UBDDL
    403"$0.6(ࡳຈTPSBDPNVH
    FOE

    View full-size slide