{"skill":{"slug":"niu-vehicle","displayName":"Niu Vehicle","summary":"Connect to NIU smart electric vehicles to retrieve real-time status - battery level, charging status, remaining charge time, location, and total mileage. Als...","description":"---\nname: niu-vehicle\ndescription: \"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?'.\"\nhomepage: https://www.niu.com/\nuser-invocable: true\nmetadata:\n  {\"openclaw\": {\"requires\": {\"bins\": [\"curl\"]}, \"primaryEnv\": \"NIU_API_KEY\"}}\n---\n\n# NIU Scooter Status\n\nQuery your NIU electric scooter status - battery, charging, location, and mileage.\n\n## API Endpoint\n\n```bash\ncurl -s \"https://ai-mcp.niu.com/claw/scooter_info?key=$NIU_API_KEY\"\n```\n\n## Token Resolution\n\nEnsure `NIU_API_KEY` is available. If empty, it will be read from config in order:\n\n1. Environment variable: `$NIU_API_KEY`\n2. Config file: `~/.openclaw/openclaw.json`\n3. Config file: `/data/.clawdbot/openclaw.json`\n\n```bash\nexport NIU_API_KEY=$(cat ~/.openclaw/openclaw.json 2>/dev/null | jq -r '.skills.entries[\"niu-vehicle\"].apiKey // empty')\n```\n\n## Response Fields\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `batteryLevel` | number | Battery percentage (0-100) |\n| `estimatedRange` | string | Estimated remaining range (km) |\n| `isCharging` | boolean | Whether currently charging |\n| `chargingRemainingTime` | number | Remaining charge time (minutes) |\n| `location` | string | Current scooter location address |\n| `totalMileage` | number | Total distance ridden (km) |\n| `lastUpdate` | string | Last update timestamp |\n\n## Example Response\n\n```json\n{\n  \"status\": 0,\n  \"data\": {\n    \"batteryLevel\": 62,\n    \"estimatedRange\": \"55\",\n    \"isCharging\": true,\n    \"chargingRemainingTime\": 216,\n    \"location\": \"XX市 XX楼\",\n    \"totalMileage\": 172,\n    \"lastUpdate\": \"2026-03-12 17:37:53\"\n  }\n}\n```\n\n## Error Handling\n\n| Error | Description |\n|-------|-------------|\n| HTTP 401/403 | Authentication failed. Check your API key in the OpenClaw dashboard or config file. |\n| HTTP 404 | API endpoint not found. Check the API URL. |\n| Timeout | Request timed out. Try again later. |\n\n## Get API Key\n\n1. Visit niu.com and log in\n2. Go to「My」→「API-Key Management」\n3. Create or copy your API key\n\n## Can Answer\n\n- 当前电量是多少？\n- 电动车还能跑多远？\n- 车在充电吗？还要充多久？\n- 车子现在在哪里？\n- 总共骑了多少公里？\n- 电池什么时候能充满？\n","tags":{"latest":"0.1.0"},"stats":{"comments":0,"downloads":534,"installsAllTime":0,"installsCurrent":0,"stars":1,"versions":2},"createdAt":1773314062708,"updatedAt":1778491857969},"latestVersion":{"version":"0.1.0","createdAt":1773328460873,"changelog":"Initial release of NIU smart electric vehicle status integration.\n\n- Connects to NIU scooters to retrieve real-time status: battery level, charging, remaining charge time, location, and total mileage.\n- Answers common user questions about scooter battery, charging, location, and mileage.\n- Uses environment variable or config file to securely store and resolve NIU API keys.\n- Provides clear instructions for setup, error handling, and example responses.","license":"MIT-0"},"metadata":{"setup":[],"os":null,"systems":null},"owner":{"handle":"qdsang","userId":"s17c1w7tvbwtjmtxhrtxrbfrkn83knqt","displayName":"蹬","image":"https://avatars.githubusercontent.com/u/804455?v=4"},"moderation":null}