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

enebularとobnizでIoTをする

kido
January 17, 2019

 enebularとobnizでIoTをする

enebular上でobnizノードを使ってIoTをする話です

kido

January 17, 2019
Tweet

More Decks by kido

Other Decks in Technology

Transcript

  1. ࣗ࡞node࡞Δࡍʹࠔͬͨ͜ͱ ɾೖྗσʔλ͕อଘ͞Εͳ͍ ɹ ೖྗσʔλͷUIΛHTMLͰॻ͕͘ɺม਺໊?ͱhtmlͷidͷҰக͕ඞཁ ɾnpmͰެ։͕ͨ͠ɺnode-red libraryʹ൓ө͞Εͳ͍ 1. npm Ͱެ։
 2.

    node-red libraryʹࣗಈ൓ө 3. enebular(node-red)Ͱ࢖͑Δ ͜ΕΒͷهࣄ͕ࢀߟʹͳΓ·ͨ͠ʂ͋Γ͕ͱ͏͍͟͝·͢ - ࣗ࡞ϊʔυ։ൃதʹϋϚͬͨ͋Ε͜Ε #nodered ʢؙࢁ͞Μͷهࣄʣ - Node-REDͷϊʔυΛ࡞ΓɺNode-RED Libraryʹొ࿥͢ΔʢԼౡ͞Μͷه ࣄʣ
  2. ·ͣ͸LνΧ obnizϊʔυʹjson Λ౉ͨ͠Βobniz͕ಈ͘ ɾpin 0 ʹ 5Vग़ྗɹ →ɹɹ [ {

    io0: true } ] ɾpin 1 ʹ 0Vग़ྗɹɹ→ɹɹ [ { io1: false } ] Ϛʔδͯ͠obniz cloudʹૹΔ ɹ[ { io0: true , io1: false } ]