-
Notifications
You must be signed in to change notification settings - Fork 18
Home
Welcome to the Using-IOT-toProcess-BlockchainAnalytics wiki!
IoT receiving blocks from Blockchain and run Analytics
Build an IoT project with Watson IoT Platform and Node-RED to organize users and do analytics on blocks coming from Blockchain
- Emerging Technologies
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.
- Please let us know what you think about this project. Comment on it, open issues and/or give us suggestions or reach us out.
- Live demo - https://think-iot-processor.mybluemix.net/ui/#/0
- Watch video - https://youtu.be/qI3a5QU0iys
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.
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
.
Want to combine IoT with Blcockchain? IBM gives you that experience to design an interactive app that will work as a plug-in to the an already set up Blockchain Hyperledger Network. This app will receive the incoming blocks from the blockchain and set device IDs on Watson IoT Platform, also store its data for each user and perform the data analysis. Check the Tutorial.
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 on a dashboard on the platform itself with other multiple great panels to get more information about each device, device total count, value display and real-time graph.
Besides what Node-RED is doing from storing information on Cloudant database and communicating with IoT Platform, it is also providing an UI where the blockchain transactions, fitcoins, steps and other analytic displays are listed on there based on our pattern.
Happy IoT-Blockchain coding. Let us know what you think, comment, contribute or open issues for more interactions.