An extension to ThingsBoard, focused on configuring and managing multiple gateway devices, with real-time status updates and streamlined configuration tools. Automatically synchronized with ThingsBoard 3.9+ platform instances.
To add some of ThingsBoard dependencies imports to your "extension" Angular component, please use this import structure:
import { <dependency> } from '<TB-module>/public-api';
"TB-module" - any of the following modules:
@app/*
@core/*
@shared/*
@modules/*
@home/*
"dependency" - name of dependency/type located in "TB-module". Refer to modules-map to see what you can use.
Example:
import { WidgetConfig } from '@shared/public-api';
In case you want to use your own dependencies package from the npm registry (unless you have specified another one in your package.json), you can easily add them to yarn packet manager running the next command:
yarn add <package-name>
Example:
yarn add lodash
If it's not the npm/yarn registry, and you want to add it in another way, please refer to yarn docs.
cd ${TB_GATEWAY_EXTENSION_DIR}
yarn install
yarn start
In widgets library create a new widget and in the resources tab of the widget editor add this file path:
http://localhost:4201/static/gateway/gateway-management-extension.js
You must also check "Is module"
cd ${TB_GATEWAY_EXTENSION_DIR}
yarn build
You can find the compiled file at the following path:
${TB_GATEWAY_EXTENSION_DIR}/target/generated-resources/gateway-management-extension.js