How to install and Set Up Thingsboard in DSGW-210 Edge Computing Gateway

The following instruction describes how to install and set up Thingsboard in DSGW-210 IoT Gateway.
Learn more about the product: DWGW-210 Edge Computing Gateway
Spec: DSGW-210 IoT Gateway Product Specification
ThingsBoard is an open-source IoT platform for data collection, processing, visualization, and device management that enables rapid development, management, and scaling of IoT projects. its goal is to provide the out-of-the-box IoT cloud or on-premises solution that will enable server-side infrastructure for your IoT applications.

(Refer to ThingsBoard IoT Gateway for details)

Step 1. Install OpenJDK

sudo apt get
sudo apt install openjdk-11-jdk

Step 2. ThingsBoard Service installation

# Download installation package
Wget https://github.com/thingsboard/thingsboard/releases/download/v3.3.3/thingsboard-3.3.3.deb
# Install ThingsBoard as a service

Step 3. Configure ThingsBoard database

Step 4. ThingsBoard Configuration

# Edit Thingsboard configuration file
sudo nano /etc/thingsboard/conf/thingsboard.conf

Add the following lines to the configuration file

# Edit Thingsboard configuration file# DB Configuration
export DATABASE_TS_TYPE=sql
export SPRING_JPA_DATABASE_PLATFORM=org.hibernate.dialect.PostgreSQLDialect

Step 5. Choose Thingsboard queue service

# Edit Thingsboard configuration file
sudo nano /etc/thingsboard/conf/thingsboard.conf

Step 6. Run installation script

# --loadDemo option will load demo data: users, devices, assets, rules, widgets.
sudo /usr/share/thingsboard/bin/install/install.sh –loadDemo

Step 7. Start Thingsboard Service
Execute the following command to start ThingsBoard:

sudo service thingsboard start

Once started, you will be able to open Web UI using the following link:

http://localhost:8080/

NOTE: For more installation information, please refer to

Other Installation guide:

1 Like

The provided instruction is a comprehensive guide for installing and setting up ThingsBoard on the DSGW-210 IoT Gateway. However, it’s missing a crucial step - configuring the database for ThingsBoard.

To resolve this, include a step to create and configure the PostgreSQL database for ThingsBoard:

Step 3. Configure ThingsBoard database

  • Create a PostgreSQL database for ThingsBoard:

bashCopy code

sudo -u postgres psql
CREATE DATABASE thingsboard;
CREATE USER thingsboard WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE thingsboard TO thingsboard;
\q

Step 4. ThingsBoard Configuration

  • Edit Thingsboard configuration file:

bashCopy code

sudo nano /etc/thingsboard/conf/thingsboard.conf
  • Add the following lines to the configuration file:

bashCopy code

# DB Configuration
export DATABASE_TS_TYPE=sql
export SPRING_JPA_DATABASE_PLATFORM=org.hibernate.dialect.PostgreSQLDialect

By adding these steps, users will have a complete guide to installing and configuring ThingsBoard on the DSGW-210 IoT Gateway, ensuring a seamless setup process.

Still you have doubts you can explore these excellent platforms:-

  1. W3Schools
  2. Iqra Technology
1 Like