Blog

blog post with image

Data visualization is defind as the presentation of data in a pictorial or graphical format. It enables decision makers to see analytics presented visually, so they can grasp difficult concepts or identify new patterns easily. Here, the key is to get the data that’s being generated from the machine/prototype which means to get all the information from the device and to visualize it. In this blog, I’ll tell you about how to visualize IoT data for temperature and humidity that is been recorded with a DHT11 sensor with Horavue which will prove much use for the researches and for home automation purposes. The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It uses a capacitive humidity sense and a thermistor to measure the surrounding air, and emits a digital signal on the data pin. Using Arduino and the Wi-Fi shield we can easily send the data to Horavue.


HARDWARE SETUP


blog post with image


You will be needing a Arduino, DHT11, Wi Fi shield, a mini USB cable, a 5v DC Power Supply, bread board and jump wires to construct this circuit. The Arduino is an open-source platform that consists of both a physical programmable circuit board and a software, that runs on your computer, used to write and upload computer code to the physical board. The DHT11 sensor is used to sense and garner data, while Wi Fi shield gets the data to the Horavue cloud.


SOFTWARE SETUP


The user should make sure he/she has a Horavue account in order to transmit the data. If you haven’t created yet, it can be created in the Horavue website and is free. Once the device starts working the data are sent to the Horavue cloud.

Now the data that’s been collected from the temperature and the humidity sensor will be uploaded to a space called the stream in the HoraVue. A stream is a place in which all the predefined data are stored. The total number of streams will vary depending upon the requirements of the user. Then, the user has to select his/her suitable transfer mode and should enter the description along with the total number of devices whilst creating a stream.

blog post with image

Once the stream is create, the URL of the stream called as the Data Format has to be added. A Data Format is defined as the URL of a stream in Horavue for which the user is intending to send the data. If the data isn’t addressed to it’s relevant data format then the data might get lost.

blog post with image


CODE SETUP


Now the necessary library files for the Wi Fi shield and DHT11 are imported for the device to gain a better knowledge followed by the Wi Fi session ID, host and password are imbibed. Once all this is done, the codes are now combined to push the data to Horavue and then it can be visualized as per the needs of the user.

#include  //  DHT.h library
#include  // ESP8266WiFi.h library
#define DHTPIN 2
#define DHTTYPE  DHT11

const char* ssid     = "YourNetworkSSID";
const char* password = "YourPassword";
const char* host = "app.horavue.com";

DHT dht(DHTPIN, DHTTYPE, 15);

void setup() {
  // Initialize sensor
 dht.begin();
  delay(1000);

//  Connect to WiFi network
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
  }
}

#include  //  DHT.h library
#include  // ESP8266WiFi.h library

#define DHTPIN 2
#define DHTTYPE  DHT11

const char* ssid     = "YourNetworkSSID";
const char* password = "YourPassword";
const char* host = "app.horavue.com";

DHT dht(DHTPIN, DHTTYPE, 15);

void setup() {
  // Initialize sensor
 dht.begin();
  delay(1000);

//  Connect to WiFi network
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
  }
}

void loop() {
 float humidity = dht.readHumidity();
 float temperature = dht.readTemperature();

  if (isnan(humidity) || isnan(temperature)) {
    return;
  }

// make TCP connections
  WiFiClient client;
  const int httpPort = 80;
  if (!client.connect(host, httpPort)) {
    return;
  }

  String url = "/api/data/WhZFB/b8db092d8d5ad0d9e35e84f49758ff87355e7bb3692ebf8dd07a16d18e541a0c";
  url+="&Temp=";
  url+=String(temperature);
  url+="&Humidity=";
  url+=String(humidity);
  url+="\r\n";

  // Request to the server
  client.print(String("GET ")+ "Host: " + host + "\r\n" + url + " HTTP/1.1\r\n" + "Connection: close\r\n\r\n");
    delay(1000);
}


VISUALIZE YOUR IOT DATA


blog post with image


Everything that are displayed are precise, accurate and valuable when it is being visualized in Horavue. A user must know the context and understand what he looks at because that’s the bottom line we at LogFuze believe in. We offer our services to our customers to improve the efficiency, thus improving the quality and providing timely results and performance. It’s also accompanied by graphs and charts aiding the visualizations to be much enlightening. They answer people’s questions, and make them expand their outlook.

The Internet of Things (IoT) enables power producers, public utilities, and other companies in the energy sector to collect energy power consumption data from hundreds of factories and thousands of homes in near real time. This wealth of information has opened opportunities to evaluate energy efficiency initiatives, predict power demand, and perform energy audits. To make the most of the opportunities presented by the IoT, the engineers used Horavue to develop a workflow for collecting, storing, analyzing, visualizing, and interpreting data from sensors in homes and businesses distributed across wide geographic areas. Just within a few time since its inception LogFuze had implemented its services on a large scale.