Vian Wu

@Vian

Joined on Jun 29, 2022

  • [!Note] Provide simple examples demonstrating advanced widget features. HTTP Service Use Angular httpClient Include ThingsBoard access token self.ctx.http.get(url) .subscribe( (res) => {
     Like  Bookmark
  • :::info Aim: To describe the relation meaning in ThingsBoard, and what's the different between Contains and Manages. ::: Outbound & Inbound image Outbound relations: from
     Like  Bookmark
  • Aim: Use custom JS script to open a dashboard state in ThingsBoard dialog component There exists two ways to reach the goal:Use openDashboardStateInSeparateDialog method in actionsApi Use elementClick method in actionsApi Method 1 - openDashboardStateInSeparateDialog() Custom widgets in ThingsBoard widgets library <!-- in custom widget --> <button class="btn" (click)="handleClick()">Open Dialog</button> // in custom widget
     Like  Bookmark
  • Role Feature The role feature is only in the ThingsBoard Professional Edition (TB PE) A Role contains a list of Resources and a list of allowed Operations for each of those resources. There are two Role types: Generic and Group Generic Role Setup how many menu items for the role can use SelectionResource: menu items Operation: change owner, CRUD, rpc call, assign to tenant, claim devices Group Role
     Like  Bookmark
  • Step 1 - Clone single branch git clone --branch <branchname> --single-branch <remote-repo-url> //or git clone -b <branchname> --single-branch <remote-repo-url> Sample $ git clone -b release-3.6 --single-branch https://github.com/thingsboard/thingsboard.git
     Like  Bookmark
  • Use attributeServiceself.ctx.attributeService Check how many methods in attributeService Create a latestValue-type widget Use getEntityAttributes method to get the entity attributes Use saveEntityAttributes method to update the entity attributes self.onInit = function() { const entityId = self.ctx.data[0].datasource.entity
     Like  Bookmark
  • Create an API key Create an account in Confluent Cloud Create a key in Confluent Cloud for connection Use Global access There will show important credential API key: **************** API secret: ***************************************
     Like  Bookmark