BoomBoomShakeShake your IoT Device

This is a very fun little game you can do with your friends and colleges! Just have them open a URL on their smartphone to stream accelerator meter data to the cloud. Then everybody just have to shake their device very hard and the one creating the most energy wins. Interested? Here are some little steps how to do it:

  1. Sign up for a free IBM Cloud account
  2. Deploy the application using one-click deployment
  3. Stream the data into a relational data bases system
  4. Run an R – Script telling you who the winner is

Sign up for a free IBM Cloud account

IBM Bluemix is the IBM PaaS Cloud – a free trial is offered to everyone but IBM also let’s you to use the cloud on a limited basis for free without paying anything. So you also can run this demo once the 30 day trial expired.

Deploy the application using one-click deployment

Once you have a Bluemix account in place you can deploy the application in just one click:

  1. Open this URL
    Screen Shot 2016-08-17 at 16.31.50
  2. Click on “Deploy my App”
    Screen Shot 2016-08-17 at 16.34.40
  3. Click on “Deploy”
    Screen Shot 2016-08-17 at 16.29.16
    Once finished you can already send accelerator meter data into the cloud. Please note down the application name because it will be part of the URL you have to use. Actually in my case the URL I’ll give to my colleges will be discover-iot-sample-romeokienzler-1412.mybluemix.net/iot-phone. Now you can already send data to the cloud but it won’t get stored, so lets cover that:
  4. We’ll use NodeRED, an open source graphical flow editor to subscribe to the MQTT data coming from the smart phones and store it to the database, therefore we have to create a NodeRED instance: https://new-console.ng.bluemix.net/catalog/starters/node-red-starter/
  5. Just put a unique name into “app name” (it has to be unique (no-existent) on the mybluemix.net domain, so if you take abc the URL of your application will be abc.mybluemix.net which is currently free since I’m getting a 404 from it)Screen Shot 2016-08-17 at 16.44.59.png
  6. Click on “Create”
  7. Once finished click on “connections” and then on “connect new” – we will now add a relational database to the application:
    Screen Shot 2016-08-17 at 16.52.04.png
  8. Search for “dashDB” (using the search field) and then click on it:
    Screen Shot 2016-08-17 at 16.53.52
  9. Click on “create”
  10. Click on “restage”
  11. Great, now we have everything in place to capture and store the data

Capture and store the data using NodeRED

 

 

 

 

 

 

 

Advertisements
Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s