playbulb candle & watson iot platform using watson apis and twitter

13
PlayBulb(Candle) and WIoTP Markus van Kempen Executive Architect & Venture Capitalist E: [email protected] T: @markusvankempen

Upload: markus-van-kempen

Post on 16-Apr-2017

150 views

Category:

Internet


9 download

TRANSCRIPT

PlayBulb(Candle) and WIoTP

Markus van Kempen Executive Architect & Venture Capitalist E: [email protected] T: @markusvankempen

2

1.  Connect to PlayBulb Candle -  Explore the PlayBulb BLE Characteristic -  Create a node.js GW PI program

2.  Connect PlayBulb to Watson IoT Platform and use Services -  Register Device in WIoTP -  Add the WIoTP client to GW program -  Visualize the Candle events -  Use Weather to set Candle Color / Mode -  Use Twitter + Tone Analyzer to set Candle Color -  Use IFTT via Node-RED

Scenarios

3

1.  git clone https://github.com/markusvankempen/playbulb.git 2.  cd playbulb 3.  sudo npm install 4.  sudo node pipb ??? // will list all ble device 5.  sudo node pipb 70a54b16ace6 blue // with your uuid of course

Using node.js to connect to PlayBulb Candle

4

Controlling a PlayBulb /CandleUsing a PI 3 Explore the PlayBulb BLE Characteristics

Bluetooth BLE

PI as Gateway

5

1.  Setup WIoTP Starter App Env 2.  Add WIoTP node.js client to my BLE program 3.  Create Node-RED flow to Candle Set Color 4.  Visualize the Data with the IoT Dashboard 5.  Use the Weather Company Node to change Candle Color

Add Watson IoT connection to the PI

6

Controlling a PlayBulb Using a PI 3 Explore the PlayBulb BLE Characteristics

Bluetooth BLE

Bluemix and WIoTP PI as Gateway

WIFI

7

Visualize Candle events Data

8

1.  Add Weather Company service to IoT /Node-RED instance 2.  Change Candle color and mode based on temperature

Weather Node-RED and PlayBulb Candle

PI as Gateway

BLE WIFI

Publish Events Received Commands

9

1.  Add Watson Tone Analyzer Service to the Environment 2.  Create Node-RED With Twitter and Tone Analyzer 3.  Create Switch for different tone to set color of the Candle

Like: Yellow = Joy Red = Fear

Watson Tone Analyzer and Twitter to create a mood Candle

10

Watson Tone Analyzer and Twitter

Bluetooth BLE

Bluemix and WIoTP PI as Gateway

Blink Blue for Sadness And Yellow for Joy

WIFI Publish Events

Received Commands

11

•  Communication command for playbulb •  https://github.com/Phhere/Playbulb

•  Pi / PlayBulb node.js code and Node-red flows •  https://github.com/markusvankempen/playbulb

•  Recipe on IBM DeveloperWorks •  https://github.com/markusvankempen/playbulb

•  Shopping list •  https://www.amazon.com/gp/registry/wishlist/1870QQ55J0VTO/

ref=nav_wishlist_lists_2?cm_mc_uid=30806442456714843264946&cm_mc_sid_50200000=1484603129

References

12

Markus van Kempen Executive Architect & Venture Capitalist IBM Corporate Strategy Innovating with People and Technology email: mvk@ ca.ibm.com Twitter: @markusvankempen HashtagJ: #MVK