Just another Network site

Visualize IoT Data With Kaa and MongoDB Compass

Visualize IoT Data With Kaa and MongoDB Compass  #IoT #Cloud #BigData

  • Kaa enables data management and real-time bidirectional data exchange between the connected objects and backend infrastructure by providing server and endpoint SDK components.
  • 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.
  • In this section, let’s discuss a sample Kaa application in Kaa Sandbox.
  • 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.

  • To create a log appender, perform the following:

    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:

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.

@craigbrownphd: Visualize IoT Data With Kaa and MongoDB Compass #IoT #Cloud #BigData

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:

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.

Note: Copy this application token to fetch the data from the logs, which is required in further steps.

Developer credentials (username: devuser and password: devuser123) were used for developing the applications by creating schemas, log appenders, client configuration, and so on.

MongoDB’s log appender is used in this use case.

Note: You can also choose REST, File, Cassandra, Couchbase, Kafka, Oracle NoSQL, and Flume.

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:

Visualize IoT Data With Kaa and MongoDB Compass

Comments are closed, but trackbacks and pingbacks are open.