← 返回
开发者工具 Key 中文

Niu Vehicle

Connect to NIU smart electric vehicles to retrieve real-time status - battery level, charging status, remaining charge time, location, and total mileage. Als...
连接NIU智能电动车,获取实时状态,包括电量、充电状态、剩余充电时间、位置和总里程。
qdsang
开发者工具 clawhub v0.1.0 1 版本 99806.9 Key: 需要
★ 1
Stars
📥 497
下载
💾 4
安装
1
版本
#latest

概述

NIU Scooter Status

Query your NIU electric scooter status - battery, charging, location, and mileage.

API Endpoint

curl -s "https://ai-mcp.niu.com/claw/scooter_info?key=$NIU_API_KEY"

Token Resolution

Ensure NIU_API_KEY is available. If empty, it will be read from config in order:

  1. Environment variable: $NIU_API_KEY
  2. Config file: ~/.openclaw/openclaw.json
  3. Config file: /data/.clawdbot/openclaw.json
export NIU_API_KEY=$(cat ~/.openclaw/openclaw.json 2>/dev/null | jq -r '.skills.entries["niu-vehicle"].apiKey // empty')

Response Fields

FieldTypeDescription
--------------------------
batteryLevelnumberBattery percentage (0-100)
estimatedRangestringEstimated remaining range (km)
isChargingbooleanWhether currently charging
chargingRemainingTimenumberRemaining charge time (minutes)
locationstringCurrent scooter location address
totalMileagenumberTotal distance ridden (km)
lastUpdatestringLast update timestamp

Example Response

{
  "status": 0,
  "data": {
    "batteryLevel": 62,
    "estimatedRange": "55",
    "isCharging": true,
    "chargingRemainingTime": 216,
    "location": "XX市 XX楼",
    "totalMileage": 172,
    "lastUpdate": "2026-03-12 17:37:53"
  }
}

Error Handling

ErrorDescription
--------------------
HTTP 401/403Authentication failed. Check your API key in the OpenClaw dashboard or config file.
HTTP 404API endpoint not found. Check the API URL.
TimeoutRequest timed out. Try again later.

Get API Key

  1. Visit niu.com and log in
  2. Go to「My」→「API-Key Management」
  3. Create or copy your API key

Can Answer

  • 当前电量是多少?
  • 电动车还能跑多远?
  • 车在充电吗?还要充多久?
  • 车子现在在哪里?
  • 总共骑了多少公里?
  • 电池什么时候能充满?

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-19 13:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,215
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,217
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,807