Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.
ljbennett62 edited this page Mar 28, 2018 · 9 revisions

Welcome to the Using-IOT-toProcess-BlockchainAnalytics wiki!

Short Name

IoT receiving blocks from Blockchain and run Analytics

Short Description

Build an IoT project with Watson IoT Platform and Node-RED to organize users and do analytics on blocks coming from Blockchain

Offering Type

  • Emerging Technologies

Introduction

This IoT app will insert incoming values from Blockchain into the Cloudant database, then it will be retrieved to go through analysis for the Node-Red dashboard and through sending it in events to the Watson IoT Platform for streaming graphs, device counting and other showcases.

Authors

Code

  • Please let us know what you think about this project. Comment on it, open issues and/or give us suggestions or reach us out.

Demo

Video

  • Watch video

Overview

For better viewing and understanding with the transactions happening within Blockchain, without having to access the hyperledger network, this IoT app example targets this requirement for the first time. Our application setup in this tutorial will do that.

The IoT app plays the role of organizing the users, list them for different use purposes and receives values from the transactions for analytical displays and track transactions processed into a graph.

IoT is taking into consideration the new users, then registers them as devices. It takes the generated values, in this example it can be the steps and fitcoins, to do an overall counts of these values and transactions.

This can be taken into different use cases to whether use it per single user and run its analytics or an overall analytics as we did in this project.

Flow

Architecture

IMPORTANT: For more detailed step-by-step instructions, please make sure you visit the README.md page on the Github repo.

Choose from IBM Cloud/Bluemix Catalog the Internet of Things service, name it and create it. After few minutes when your app is ready, open Cloudant and create a database with the name of secretmap.

Click your app's URL to open your Node-Red editor. Copy in there all the contents from the json file inside the scripts folder and paste them in the import box.

Blockchain Network will pass the blocks where all the information will be taken and be saved to be used for analytics and display the values on the Node-Red dashboard as seen in the above image.

1- Make sure to have Cloudant database service available and binded to your Bluemix/IBM Cloud app instance.

2- Make sure also to have a Watson IoT Platform created and binded as a service too.

3- Dashboard needs to be created in the Node-Red if it's not taken care of by the code import.

Make sure you can see the Internet of Things Platform and Cloudant services available in your Bluemix: Dashboard -> Connections.

Included components

Technology

Blog post

For better viewing and understanding with the transactions happening within Blockchain, without having to access the hyperledger network, this IoT app example targets this requirement for the first time. Our application setup in this tutorial will do that.

The IoT app plays the role of organizing the users, list them for different use purposes and receives values from the transactions for analytical displays and track transactions processed into a graph.

IoT is taking into consideration the new users, then registers them as devices. It takes the generated values, in this example it can be the steps and fitcoins, to do an overall counts of these values and transactions.

This can be taken into different use cases to whether use it per single user and run its analytics or an overall analytics as we did in this project.

Related links

Clone this wiki locally