TDengine is an industrial data platform purpose-built for the IoT (Internet of Things), combining a time series database with essential features like stream processing, data subscription, and caching.
Pulse is a free internal app builder, it allows creating data driven GUIS while writing only SQL code.

Setting up a TDengine connection in Pulse

Start TDEngine

We will use docker to quickly launch an instance of TDEngine:

This will output something similar to the below when it runs successfully.
TDengine Server 3.0 uses TCP port 6030.
Port 6041 is used by taosAdapter for the REST API service.
Ports 6043 through 6049 are used by taosAdapter for other connectors.

Connecting to TDEngine from Pulse

When you first open Pulse it will look like the image below.

Add Data Connection
  1. Click on the Connections menu then Add Connection button.
  2. Server Type: TDEngine
  3. Host:localhost
    Port: 6041
  4. Username: root
    Password: taosdata
  5. Click Add

Add TDEngine Connection

Once you've added the connection, you can run code on the SQL page or add a dashboard.

Create Database

Copy paste the below code into the SQL editor. Then Run this code line by line otherwise it will FAIL.

Create UI

Go to the main dashboard listing page, then click add dashboard and:

  1. Click add component Table.
  2. Make sure the data source is set to your TDEngine connection. TDE in this demo.
  3. Enter your SQL query.
  4. Click Send Query to update the UI.
TDEngine Create GUI


Well Done!
You have now created your first Pulse App. See our other tutorials for more advanced examples.