跳到正文
TakoAPI
返回技能列表

thingsboard-skill

由 hoangnv170752 提供

Data & Analytics
1.6k下载量由 clawskills.sh 提供
6星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage ThingsBoard devices, dashboards, telemetry.

描述

该技能的功能

Manages ThingsBoard IoT platform resources through its REST API. Covers devices, telemetry data, dashboards, assets, and user accounts. Authentication is handled via JWT tokens with automatic refresh support.

Provides direct CLI access to ThingsBoard's full REST API without requiring the web UI, enabling automation and scripting of IoT data workflows.

何时使用

  • Query latest sensor readings from IoT devices
  • List and inspect all registered tenant devices
  • Pull historical telemetry data for a specific time range
  • Make a dashboard publicly accessible without credentials
  • Audit tenant users and customer accounts

示例工作流

输入

User asks: Get the last hour of temperature data from my first device

智能体
  1. 1

    Authenticate against TB_URL using TB_USERNAME and TB_PASSWORD to obtain a JWT token

  2. 2

    Fetch the device list and extract the first device's UUID

  3. 3

    Query telemetry keys for that device to confirm 'temperature' exists

  4. 4

    Calculate START_TS and END_TS as millisecond epoch values spanning the last hour

  5. 5

    Request timeseries data for 'temperature' within that range and return the parsed JSON

输出

A JSON array of timestamped temperature readings from the past hour

前置要求

  • ThingsBoard server instance (self-hosted or cloud) with REST API access
  • TB_URL environment variable set to the server address
  • TB_USERNAME environment variable set to a valid account email
  • TB_PASSWORD environment variable set to the account password

安装

clawhub install hoangnv170752/thingsboard-skill

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接