Install
openclaw skills install @antgroup/zeecu-device-skill极酷电动车车辆信息查询,支持查询用户绑定的车辆列表、车辆实时状态、历史骑行轨迹
openclaw skills install @antgroup/zeecu-device-skill极酷电动车车辆信息查询服务向开发者提供完整的车辆信息查询服务,包括车辆列表、实时状态、位置、历史骑行轨迹等信息的查询功能。
首次使用时需要配置 API Key:
sk_live_ 开头的 API Keyexport API_KEY=your_keyconfig.json 写入 Key当用户想要查询极酷电动车车辆信息(如车辆列表、实时位置、在线状态、电量、里程、骑行记录等)时,使用此 skill。
用户表达了以下意图之一:
API_KEY 或在本地 config.json 中提供了 Key,直接使用该 Key 进行后续 API 调用请求 Key 的回复模板:
🔑 查询车辆信息需要 API Key,请在品牌 App 中点击"获取 AI 助手接入密钥"获取。
优先读取环境变量 API_KEY,其次从本地 config.json 读取。也支持在命令行显式传入 --api-key。
API Key 以 sk_live_ 开头,通过请求体参数传递。
参考 config.example.json 作为配置样例。
config.json 示例:
{
"apiKey": "sk_live_your_key_here"
}
export API_KEY=sk_live_your_key_here
python3 scripts/query.py \
--device-name "我的小电驴"
export API_KEY=sk_live_your_key_here
python3 scripts/query.py \
--device-tuid T123456789 \
--start-time 1713849600 \
--end-time 1714454400
如果脚本执行返回 API_KEY_INVALID 错误,说明 API Key 无效或已撤销,提示用户提供有效的 API Key,等待用户回复后再继续。
如果账户有多个设备且未提供选择,脚本会返回一个列表供用户选择:
{"choose_device": [{"tuid":"T123456789","model":"XX-200"},{"tuid":"T987654321","model":"YY-100"}]}
然后使用 --device-name 或 --device-tuid 重新运行脚本。
提供无效 key 的回复模版
🔑 提供的 API Key 无效或已撤销,请检查后重新提供。
{
"tuid": "T123456789",
"model": "XX-200",
"color": "珍珠白",
"frameNo": "VIN123456789012345",
"barCode": "1234567890123",
"location": "120.123456,30.123456",
"locationAddress": "浙江省杭州市西湖区xxx路xxx号",
"runningStatus": "在线",
"speed": "0",
"powerStatus": "OFF",
"rsrp": "-75",
"locss": "12",
"totalMileage": 1234.5,
"batteryLevel": "85",
"enduranceMileage": "45.2",
"lastLocationTime": "1713849600000"
}
{
"tuid": "T123456789",
"model": "XX-200",
"trips": [
{
"tripId": "trip_001",
"startTime": 1713849600000,
"endTime": 1713853200000,
"mileage": "12.5km",
"durationValue": "45",
"durationUnit": "min",
"avgSpeed": "16.7",
"maxSpeed": "35.2",
"firstAddress": "浙江省杭州市西湖区xxx路",
"lastAddress": "浙江省杭州市滨江区yyy路"
}
],
"tripCount": 1
}
配置文件位于 config.json,包含以下内容:
{
"apiKey": "sk_live_your_key_here"
}
设置 Key 的方式:
export API_KEY=sk_live_your_keyconfig.json 文件--api-key sk_live_your_keyquery.py — 查询电动车信息脚本api-spec.md — API 规范文档