Skip to content

How to show DHT11 data on a QIoT Dashboard?

This tutorial will show you how to display DHT11 data on a QIoT Dashboard (using a Seeeduino with W5500 Ethernet Shield).

TheoIm

Published October 31, 2023

Original author: qnap · TaiwanOriginal source (new tab)

How to show DHT11 data on a QIoT Dashboard?

Components

Hardware components
W5500 Ethernet Shield

x 1


Project description

The DHT11 is a basic, low-cost digital temperature and humidity sensor. This tutorial will show you how to display DHT11 data on a QIoT Dashboard (using a Seeeduino with W5500 Ethernet Shield).

How to show DHT11 data on a QIoT Dashboard?

  1. Go to "IoT Applications" >  "Add IoT applications"
    How to show DHT11 data on a QIoT Dashboard?
  2. In "Create a New IoT application":
    • Enter a name for the IoT Application.
    • The Rule name and Dashboard name will be automatically generated based on the IoT Application Name.
    • Click "Create".
      How to show DHT11 data on a QIoT Dashboard?
  3. In "Add Thing":
    • Enter a name for the Thing (in this sample: "Thingname").
    • Select "Custom" in "Thing Category".
    • Click "Add".
      How to show DHT11 data on a QIoT Dashboard?
  4. Click the "Thing Resources" button, and enter "Thing Resource".
    How to show DHT11 data on a QIoT Dashboard?
  5. In "Add Thing Resource":
    • Enter a name for the resource (in this example: "Temperature").
    • Enter a resource ID.
      (The resource ID is used to create a topic in the QIoT broker. This ID should be unique for the device and no duplicates should be used for the same device).
    • Click "Add".
      How to show DHT11 data on a QIoT Dashboard?
    • Add "Thing Resources" (both Temperature and Humidity).
      How to show DHT11 data on a QIoT Dashboard?
  6. Click "Connect to device", and in " Thing Information" choose "MQTT", click "Next", and click "download JSON file".
    How to show DHT11 data on a QIoT Dashboard?
    How to show DHT11 data on a QIoT Dashboard?
  7. You can get the example codefrom :
    https://github.com/qnap-dev/qnap-qiot-sdks/blob/master/projects/seeeduino-dht11-example/mqtt-seeeduino-dht11-example/mqtt-seeeduino-dht11-example.ino
  8. Open the JSON file downloaded in step 6, and copy the code (ip, port, client id, username, password, temperature topic and humidity topic) to override the sample code in step 7. After copying, upload the file.
    How to show DHT11 data on a QIoT Dashboard?
  9. Return to dashboard page, and follow these steps:
    • Click "Edit".
      How to show DHT11 data on a QIoT Dashboard?
    • Add a "Pane by clicking "+".
      How to show DHT11 data on a QIoT Dashboard?
    • Add a widget by clicking "+".
      How to show DHT11 data on a QIoT Dashboard?
    • Select "Gauge".
      How to show DHT11 data on a QIoT Dashboard?
    • Click "+ DATASOURCE".
      How to show DHT11 data on a QIoT Dashboard?
    • Choose the resource name of the assigned topic and choose "Value".
      How to show DHT11 data on a QIoT Dashboard?
    • Click "Save" and the widget will be created.
      How to show DHT11 data on a QIoT Dashboard?
  10. Add the dashboard of both temperature and humidity, and  you can see the result as following:  
    How to show DHT11 data on a QIoT Dashboard?

Comments

Comments