返回顶部
n

niu-vehicle牛电车辆

Connect to NIU smart electric vehicles to retrieve real-time status - battery level, charging status, remaining charge time, location, and total mileage. Also answer questions like 'how much battery left?', 'is charging?', 'where is my scooter?', 'total km ridden?'.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
220
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

niu-vehicle

NIU 滑板车状态

查询您的 NIU 电动滑板车状态 - 电池、充电、位置和里程。

API 端点

bash
curl -s https://ai-mcp.niu.com/claw/scooterinfo?key=$NIUAPI_KEY

Token 解析

确保 NIUAPIKEY 可用。如果为空,将按顺序从配置中读取:

  1. 1. 环境变量:$NIUAPIKEY
  2. 配置文件:~/.openclaw/openclaw.json
  3. 配置文件:/data/.clawdbot/openclaw.json

bash
export NIUAPIKEY=$(cat ~/.openclaw/openclaw.json 2>/dev/null | jq -r .skills.entries[niu-vehicle].apiKey // empty)

响应字段

字段类型描述
batteryLevel数字电池百分比(0-100)
estimatedRange
字符串 | 预估剩余续航里程(公里) | | isCharging | 布尔值 | 是否正在充电 | | chargingRemainingTime | 数字 | 剩余充电时间(分钟) | | location | 字符串 | 当前滑板车位置地址 | | totalMileage | 数字 | 总骑行里程(公里) | | lastUpdate | 字符串 | 最后更新时间戳 |

示例响应

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

错误处理

错误描述
HTTP 401/403认证失败。请在 OpenClaw 仪表盘或配置文件中检查您的 API 密钥。
HTTP 404
API 端点未找到。请检查 API URL。 | | 超时 | 请求超时。请稍后重试。 |

获取 API 密钥

  1. 1. 访问 niu.com 并登录
  2. 前往「我的」→「API-Key 管理」
  3. 创建或复制您的 API 密钥

可回答的问题

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

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 niu-vehicle-1776118931 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 niu-vehicle-1776118931 技能

通过命令行安装

skillhub install niu-vehicle-1776118931

下载

⬇ 下载 niu-vehicle v0.1.0(免费)

文件大小: 1.92 KB | 发布时间: 2026-4-15 13:36

v0.1.0 最新 2026-4-15 13:36
Initial release of NIU smart electric vehicle status integration.

- Connects to NIU scooters to retrieve real-time status: battery level, charging, remaining charge time, location, and total mileage.
- Answers common user questions about scooter battery, charging, location, and mileage.
- Uses environment variable or config file to securely store and resolve NIU API keys.
- Provides clear instructions for setup, error handling, and example responses.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部