Home United States USA — software Visualize IoT Data With Kaa and MongoDB Compass Visualize IoT Data With...

Visualize IoT Data With Kaa and MongoDB Compass Visualize IoT Data With Kaa and MongoDB Compass

244
0
SHARE

Kaa and MongoDB can work together to visualize IoT data. Learn how to integrate Kaa and MongoDB Compass to fetch IoT app data for easy viewing.
Kaa is a highly flexible, open source middleware platform for Internet of Things product development. It provides a scalable, end-to-end IoT framework for large, cloud-connected IoT networks. Kaa enables data management and real-time bidirectional data exchange between the connected objects and backend infrastructure by providing server and endpoint SDK components.
The SDK components support multi-programming development, client server communication handling authentications, and so on. The SDK components can be virtually integrated with unlimited and any type of connected devices or microchips.
In this blog, let us discuss the quick installation of Kaa Sandbox using a VirtualBox environment and connecting a sample application with MongoDB log appenders.
To install Kaa Sandbox, perform the following:
Download the .ova file and provide a proper location in the local system.
Upon completing the import process, start Kaa Sandbox in a VM.
Upon starting Kaa Sandbox in VirtualBox, the local host Kaa Dashboard Access Interfaces will be provided as shown below:
Screen 1 provides the local host for dashboard access and screen 2 provides the login to this virtual machine.
In this section, let’s discuss a sample Kaa application in Kaa Sandbox.
This application sends temperature data at preset time periods from the endpoint to the server. A log appender is set up to collect data from the endpoint. In our use case, a MongoDB log appender is used.
The sample application is executed by:
The sample application here is named Data Collection Java Demo
To generate the SDK, perform the following:
The corresponding SDK component will be built or generated. You can also download Objective C, C++, and Android files for the Java SDK.
You can add or delete the application and get the application token required to communicate with the endpoint and the server.
MongoDB’s log appender is used in this use case.
To create a log appender, perform the following:
Launch the application (.jar file) in a command prompt.
Kaa will be automatically started and the data will be sent to logs by the log appenders as shown in this screenshot:
To fetch logs from MongoDB, log into Kaa Sandbox and use the following command:

Continue reading...