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

Node-RED × IoT 事始め ~ESPr × Node-RED × Milkcocoa~ / IoT using Node-RED

Node-RED × IoT 事始め ~ESPr × Node-RED × Milkcocoa~ / IoT using Node-RED

2017.06.28
Node-RED UG勉強会 Vol.5 「Node-RED x IoT」
https://node-red.connpass.com/event/57219/

B074a109c8bed590e36ce7d053c0d683?s=128

shanonim

June 28, 2017
Tweet

Transcript

  1. Node-RED × IoT ࣄ࢝Ί ~ ESPr × Node-RED × Milkcocoa

    ~ 2017.6.28 (wed) Node-RED UGษڧձ Vol.5 ʮNode-RED x IoTʯ @shanonim
  2. ࣰݪ߂ޫ )JSPNJUTV4IJOPIBSB !TIBOPOJN

  3. None
  4. None
  5. Node-RED

  6. None
  7. What’s Node-RED • ϊϯϓϩάϥϛϯά • ϒϥ΢β্Ͱ෦඼Λܨ͛ͯIoTͰ͖Δ • node-module͕installͰ͖Δ • @1ft-seabass

    ͞Μ͕Α͔͍ͭͬͯ͘Δ
  8. None
  9. ࠓ೔࿩͢͜ͱ • How to Use • Install and Access •

    Hello World • Node-RED × IoT • node-red-contrib-milkcocoa • node-red-dashboard
  10. Install and Access

  11. Install and Access • install Node-RED • http://127.0.0.1:1880/

  12. Install and Access

  13. Hello World

  14. Hello World • connect inject node and debug node

  15. Hello World • edit inject node

  16. Hello World click injected!!

  17. Node-RED × IoT

  18. with Milkcocoa

  19. • IoTʹಛԽͨ͠BaaS • MQTTϦΞϧλΠϜ௨৴ • σʔλͷอଘɾߋ৽ɾऔಘ • ๛෋ͳSDK

  20. node-red-contrib-milkcocoa • A collection of Node-RED nodes for Milkcocoa

  21. node-red-contrib-milkcocoa

  22. milkcocoa app_id

  23. API Key API Secret

  24. None
  25. Success

  26. Node-RED × IoT with Milkcocoa Push Detection

  27. Push Detection • subscribe push event on Milkcocoa push to

    milkcocoa detect event from milkcocoa
  28. Push Detection

  29. push() onPush()

  30. Sample IoTing

  31. ESPr (Arduino) × Light Sensor × Node-RED with Milkcocoa

  32. ESPr (Arduino) × Light Sensor × Node-RED with Milkcocoa Internet

    Things
  33. Monitoring Brightness 1VTI &41S%FWFMPQFS &418300.։ൃϘʔυ PO1VTI

  34. ESPr Grove Shield Light Sensor

  35. None
  36. Monitoring Brightness

  37. Monitoring Brightness • Add function for getting value

  38. Demo

  39. It’s hard to see…

  40. Data Visualization

  41. Looks good!

  42. Data Visualization • node install node-red-dashboard

  43. Data Visualization • can change setting

  44. Demo

  45. ·ͱΊ

  46. ·ͱΊ • ͳ͍ͥ··Ͱ΍Βͳ͔ͬͨͷ͔… • node-moduleͰເ͕޿͕Δ • ࢹ֮Խ is େ੾ •

    Deploy to Heroku or Bluemix
  47. Happy IoTing!!