internet of javascript things

39
INTERNET OF (JAVASCRIPT) THINGS JAMES THOMAS - IBM

Upload: devevents

Post on 16-Apr-2017

216 views

Category:

Technology


0 download

TRANSCRIPT

INTERNET OF (JAVASCRIPT) THINGS

JAMES THOMAS - IBM

WHAT IS THE “INTERNET OF THINGS”?

“I hate summer” by Mendhak https://flic.kr/p/8q7jxA

Source: http://blogs.cisco.com/diversity/the-internet-of-things-infographic

Source: http://blogs.cisco.com/diversity/the-internet-of-things-infographic

SOLDERING IRON NEEDED?“Chipping ECUs for fun and profit” by Albertas Agejevas https://flic.kr/p/57XoMC

INTERNET OF THINGS ?

constNest=require('nest-thermostat');constnest=Nest.init('username','pw');

nest.getInfo('serial-num',function(data){console.log(data.current_temperature);console.log(data.target_temperature);});

IOT APP PATTERNS?

“Pattern of Ball Lights” by Bill Dickinson https://flic.kr/p/dygDe9 (CC BY NC ND)

WHAT IF WE HAD A TOOL?

QUICK VISUAL PROTOTYPING REDUCE BOILERPLATE

SHARING OF SOLUTIONS

NODES

FLOWS

RUNS ON NODE.JS

DEMO

TI SENSORTAG

BLINK(1)PROGRAMMABLE RGB LED

TEXT

DEMO NODE-RED

▸ Installing Node-RED

▸ Using Palette Nodes

▸ Creating and Deploying Flows

▸ Installing Extra Nodes

▸ Connecting to SensorTag

▸ Writing SensorTag to Twitter

▸ Creating Nodes

▸ Connecting To Drone

▸ Wiring SensorTag to Drone

▸ Using MQTT

HOW DO WE CONNECT REMOTE DEVICES?

“Museum of Communications” by Adam Foster https://flic.kr/p/dtwgV7

“MQTT is a machine-to-machine (M2M)/Internet of Things connectivity protocol.

It was designed as an extremely lightweight publish/subscribe messaging transport.

It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.”

CLIENTS BROKER

SUBSCRIBE

{…}

{…}

{…}PUBLISH

{…}

BROKERSCOMMERCIALOPEN-SOURCE

MOSQUITTO MOSCA

ACTIVEMQ RABBITMQ

MESSAGESIGHT HIVEMQ

THINGMQ CLOUDMQTT

CLIENTSALL MAJOR LANGUAGES INCLUDING EMBEDDED C AND ARDUINO PLATFORM

REMOTE DEVICES WITH NODE-RED & MQTT

“Museum of Communications” by Adam Foster https://flic.kr/p/dtwgV7

MQTT NODES

DEVICES NODE-RED

DEVICES NODE-RED

BROKER

DEVICESNODE-RED

BROKER

DEMO

INTERNET OF THINGS

JS + NODE-RED + MQTT =