2017.06.28 Node-RED UG勉強会 Vol.5 「Node-RED x IoT」 https://node-red.connpass.com/event/57219/
Node-RED × IoT ࣄ࢝Ί~ ESPr × Node-RED × Milkcocoa ~2017.6.28 (wed)Node-RED UGษڧձ Vol.5 ʮNode-RED x IoTʯ@shanonim
View Slide
ࣰݪ߂ޫ)JSPNJUTV4IJOPIBSB!TIBOPOJN
Node-RED
What’s Node-RED• ϊϯϓϩάϥϛϯά• ϒϥβ্Ͱ෦Λܨ͛ͯIoTͰ͖Δ• node-module͕installͰ͖Δ• @1ft-seabass ͞Μ͕Α͔͍ͭͬͯ͘Δ
ࠓ͢͜ͱ• How to Use• Install and Access• Hello World• Node-RED × IoT• node-red-contrib-milkcocoa• node-red-dashboard
Install and Access
Install and Access• install Node-RED• http://127.0.0.1:1880/
Hello World
Hello World• connect inject node and debug node
Hello World• edit inject node
Hello Worldclick injected!!
☺
Node-RED × IoT
with Milkcocoa
• IoTʹಛԽͨ͠BaaS• MQTTϦΞϧλΠϜ௨৴• σʔλͷอଘɾߋ৽ɾऔಘ• ๛ͳSDK
node-red-contrib-milkcocoa• A collection of Node-RED nodes for Milkcocoa
node-red-contrib-milkcocoa
milkcocoa app_id
API KeyAPI Secret
Success
Node-RED × IoTwith MilkcocoaPush Detection
Push Detection• subscribe push event on Milkcocoapush to milkcocoadetect event frommilkcocoa
Push Detection
push()onPush()
Sample IoTing
ESPr (Arduino)×Light Sensor×Node-REDwith Milkcocoa
ESPr (Arduino)×Light Sensor×Node-REDwith MilkcocoaInternetThings
Monitoring Brightness1VTI &41S%FWFMPQFS &418300.։ൃϘʔυPO1VTI
ESPrGrove Shield Light Sensor
Monitoring Brightness
Monitoring Brightness• Add function for getting value
Demo
It’s hard to see…
Data Visualization
Looks good!
Data Visualization• node install node-red-dashboard
Data Visualization• can change setting
·ͱΊ
·ͱΊ• ͳ͍ͥ··ͰΒͳ͔ͬͨͷ͔…• node-moduleͰເ͕͕Δ• ࢹ֮Խ is େ• Deploy to Heroku or Bluemix
Happy IoTing!!