-
This repository is the thingsboard-tools v2, if you're looking for the thingsboard-tools v1 Click here
-
This project is under development. If you are looking for a stable version of this project, please use the v1 version.
-
No CLI (command line) support yet, if you don't want to execute this project as a web service or you need the CLI tools for this project, please use the v1 version.
-
For more system architecture of this project, a Notion public page is provided Click here
This project provides API service, you can do the following features:
-
Get the tenant token of the thingsboard.
-
By default, this project uses the following user account to login into the thingsboard.
# User name [email protected] # Password sysadmin
-
After this tool login successfully, will check the tenant list under this account and find the specified tenant user, and try to get the JWT token of the specified tenant user, this tenant user information can be modified in
.env
file.
-
-
Add / Remove virtual device onto the thingsboard.
- Add virtual device(s) onto the thingsboard by APIs, and you can get device information.
-
Control the virtual device behavior, like the RPC command, and send data onto the thingsboard.
- Control virtual device(s) behavior, now support:
- Send data to the thingsboard
- Subscribe RPC topic of the thingsboard
- Control virtual device(s) behavior, now support:
-
And more... (under developing)
Improving your development efficiency on re-development of the thingsboard platform.
- Get the tenant token of thingsboard easier.
- Need some virtual device onto the thingsboard, and you can control virtual device(s) behavior.
- Dynamic setting the virtual device action.
- Node.js
- Thingsboard
.env
file sample are located at src/config
folder
# Application setup
PORT=3000
DEBUT=true
# Thingsboard server IP or container name
TB_SERVER_HOST=127.0.0.1:1618
TB_MQTT_HOST=127.0.0.1:1883
# Thingsboard server
[email protected]
TB_ADMIN_PASSWORD=sysadmin
TENANT_ADMIN_NAME=thingsboard-tools-tenant-admin
TENANT_NAME=thingsboard-tools-tenant
[email protected]
-
Install dependencies
npm i
-
Modify the variable
-
Execute this tool
# Production npm run start # Dev npm run start:dev
We provide the POSTMAN collection file for testing, the swagger document will provide in the future version.
- Customize the data format for virtual device upload data. (High priority)
- And more...
This project also was recorded by Awesome Thingsboard -- Tools.
If you want to find other powerful developing tools, you can visit Awesome Thingsboard.