Pavan Hoskeri 270001V4PG Visits (9299)
In my e
However, I hadn't yet signed up for Bluemix. The sign up process was very smooth and it didn't require a credit card to get started with the 30 days trial If you already have an IBM ID, you can use the same for signing up with Bluemix.
Here are the quick steps which I performed for getting the IoTF Boilerplate added to my Bluemix app:
1.> Login to Bluemix account – click on “Create a space”
Please use a unique name for your space. If you use a name for the space which already exists, the wizard updates you about the same.
2.> Once the space was created, scrolled through to Applications – “CREATE AN APP” and chose to create a web app.
3.> There are a set of Boilerplates which help us experience the power of Bluemix with the most minimal additional work being required to be done by the end user.
Please ensure that the Region is selected as US South for the IoTF Boilerplate to be available for selection.
Select “Internet of Things Foundation Starter IBM” Boilerplate and use “SDK for Node.js™”
4.> Once the application is created, we would have the Routes URL for the application, clicking on the same would take us to the Node-RED for Internet of Things landing page
Node-RED provides a browser-based editor that makes it easy to wire together flows that can be deployed to the runtime in a single click. The version running here has been customized for the IBM Internet of Things Foundation.
It’s strongly recommended to secure your Node-RED flow editor with a username and password, as otherwise anyone who can guess the URL of this application will be able to launch the flow editor and access your IoT device data
5.> By default, this is the information that you’d see in the Node-RED flow editor:
The flow of events is generally from left to right i.e. you’d have your input nodes on the left and output at the right side of the editor window.
6.> Double click on the “IBM IoT App in” input node. This would bring up the Edit node window. Keep all the values as default and the only input that you’d need to provide is the “Device Id”
This Device Id is the value that you can get from the top right corner of the simulated device. if you've read my earlier blog, the Device Id that had been assigned to the simulated device is “CC:BA:99:12:B7:62” and this is what you'd use as the value in the input node.
7.> Once the device id has been entered, click on the “Deploy” icon on the right corner of the Node-RED Editor. If you’ve entered the correct device id, the deployment should be successful and you’d start seeing the messages in the “debug” output pane on the right of the Node-RED editor window.
8.> You can analyse that based on the temperature of the simulated device, the output debug prints out whether the temperature is within safe limits or critical.
9.> There is a switch which is inserted which has been configured. When the temperature from the simulated device arrives, if the temperature is less than 40, it’s routed to output # 1 which has a debug/output node added to display that the temperature is within safe limits. If the temperature is greater than 40 then it goes to output # 2 which has a debug/output node added which displays that the temperature is critical.
You can play around with the various options that the Node-RED Editor provides for input, output, functions etc. The standard example has the output messages sent to debug output nodes, you can replace them with any of the provided social media nodes. For example, you can send a Tweet to an authorized Twitter account if the Temperature goes beyond a certain level, so that corrective actions can be taken.
The above demo is just the tip of the iceberg. Given the immense amount of features and flexibility that IBM Bluemix and IBM IoTF provide, I would say its upto an individual’s creativity and skills on how best they would like to leverage the power of these platforms for building innovative applications quickly and efficiently!