This presentation is about how to register the virtual device and analyze the device data. For more information please visit http://www.azilen.com/blog/step-by-step-guide-to-develop-iot-application-using-ibm-bluemix/
2. www.azilen.com 01
1. From the dashboard, go to Device and click on Add Device. You need to
choose your device type there from a dropdown list. If you have not
defined any device, click on Create Device Type button to define it.
3. www.azilen.com 02
2. Once you have defined device type through Create Device Type, you will
able to see device type in the drop-down.
7. www.azilen.com 06
6. Your device status will be displayed as disconnected. To connect your
virtual device to IoT platform, use the url below, which is the IBM virtual
simulator.
http://watson-iot-sensor-simulator.mybluemix.net/?cm_sp=dw-bluemix-_-
recipes-_-devcenter
8. www.azilen.com 07
7. You need to key in the device credentials here which are provided to you
by IBM.
9. www.azilen.com 08
For example:
Organization ID : rri9kn
Device Type : virtualdevice
Device ID : virtualdevice123
Authentication Method : token
Authentication Token : eOTP?4zGr-LYo&Rmn8
10. www.azilen.com 09
8. Now IoT sensor simulator will try to connect with IBM blue-mix
(You can see that in device listing panel your device status has been updated as
Connected with IBM blue-mix in device listing panel.)
11. www.azilen.com 10
9. Click on device to view json data received by IBM blue-mix from “Recent
Events” tab.
16. www.azilen.com 15
14. Now, if you change the temperature in simulator, you will be able to see
the changes in charts as well.
15. If there is requirement to perform any actions based on data analysis of
collected data, there is flexibility to define relevant notifications settings in
Blue-mix. It means, we can get notifications by mail or by phone in
accordance with settings.
16. For notifications settings, you need to create schema first. For that
follow the path: Device >> Manage Schema Tab >> Create Schema
18. www.azilen.com 17
17. Now, you need to add properties to schema, hence, click on Add property. Please
note that, you need to design our schema based on json we are getting from the
device.
For example :
{"d":{"name":"virtualdevice123","temperature":19,"humidity":57,"objectTemp":23}}
19. www.azilen.com 18
18. First we will add “d” as parent property based on our json, and then we
will add child properties.
19. Click on “Finish” to add schema.
22. www.azilen.com 21
22. Click on Edit condition to set cloud condition. Then select Temperature
property from drop-down and provide static value as 21.
23. www.azilen.com 22
23. Follow the path: Edit action >> Add action
24. Click on Activate to add & activate the rule.
25. Now go to simulator and change device temperature to 21 to get
email alert.
24. www.azilen.com 23
26. Go to Boards >> Rule-Centric Analytics
Alert details will be displayed here in different boards