Connecting to ThingsBoard 4.2 and Older
Install Trendz for ThingsBoard 4.2.1 or older
Section titled “Install Trendz for ThingsBoard 4.2.1 or older”- Follow Steps 1–5 of the installation guide for your platform.
- Before the Start Trendz service step, configure
TRENDZ_LICENSE_SECRETandTB_API_URLas described below. - Complete all remaining steps, except the Sync ThingsBoard With Trendz step.
- After the service is running, perform the post-installation steps manually.
Configure for your platform
Section titled “Configure for your platform”Trendz requires a license secret key and the ThingsBoard API URL to connect to ThingsBoard 4.2.1 or older. If you don’t have a license key, contact ThingsBoard support.
Open your docker-compose.yml and add the following environment variables under the trendz service:
environment: TRENDZ_LICENSE_SECRET: YOUR_LICENSE_SECRET_HERE TB_API_URL: http://<thingsboard-host>:9090Replace YOUR_LICENSE_SECRET_HERE with your license key and <thingsboard-host> with the address of your ThingsBoard server.
Save the file and restart the Trendz container.
Open the Trendz configuration file:
sudo nano /etc/trendz/conf/trendz.confAdd the following lines at the end of the file:
export TRENDZ_LICENSE_SECRET=YOUR_LICENSE_SECRET_HEREexport TB_API_URL=http://<thingsboard-host>:9090Replace YOUR_LICENSE_SECRET_HERE with your license key and <thingsboard-host> with the address of your ThingsBoard server (use localhost if ThingsBoard runs on the same machine).
Save the file and restart the Trendz service:
sudo service trendz restartOpen the Trendz configuration file in a text editor:
notepad "C:\Program Files (x86)\trendz\conf\trendz.conf"Add the following lines at the end of the file:
export TRENDZ_LICENSE_SECRET=YOUR_LICENSE_SECRET_HEREexport TB_API_URL=http://<thingsboard-host>:9090Replace YOUR_LICENSE_SECRET_HERE with your license key and <thingsboard-host> with the address of your ThingsBoard server (use localhost if ThingsBoard runs on the same machine).
Save the file and restart the Trendz service from the Windows Services panel.
Was this helpful?