简介
通过官方 API 查询 IAMMETER 智能电表实时数据、历史能耗与离线分析,支持 CSV 导出与站点管理,适合能源监控系统集成。
原始描述
Query and export device/site data via the iammeter API (based on https://www.iammeter.com/swaggerui/swagger.json). Triggers: list sites/devices, get real-tim...
通过你的 Agent 添加
安装目录:iammeter/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: iammeter
description: "Query and export device/site data via the iammeter API (based on https://www.iammeter.com/swaggerui/swagger.json). Triggers: list sites/devices, get real-time or historical energy data, export CSV, run power or offline analysis."
metadata: {"openclaw": {"primaryEnv": "IAMMETER_TOKEN", "requires": {"env": ["IAMMETER_TOKEN"]}}}
iammeter Skill (Node.js)
A Node.js client and CLI for the iammeter API, based on the official swagger spec.
Features
- Token is loaded automatically: first from the
IAMMETER_TOKENenvironment variable, then from~/.openclaw/openclaw.json(skills.entries.iammeter.apiKey) - List user sites (sitelist)
- Get latest data for all meters (metersdata)
- Get latest upload data for a single meter (meterdata / meterdata2)
- Query site energy history (energyhistory) and export CSV
- Power analysis (poweranalysis), offline analysis (offlineanalysis)
Configuration
- Option A (OpenClaw / Clawhub): set the token in the Skills UI. It is stored in
~/.openclaw/openclaw.jsonunderskills.entries.iammeter.apiKeyand injected as theIAMMETER_TOKENenvironment variable at runtime. - Option B (local testing): export IAMMETER_TOKEN=<your_token> before running.
Files
- references/api.md — endpoint reference summarized from swagger
- scripts/iammeter_client.js — Node.js client wrapping common endpoints
- scripts/cli.js — CLI: sitelist|meters|meter|history|poweranalysis|offlineanalysis
- package.json — dependencies (axios, yargs)
Usage (local testing)
-
Install dependencies: cd ~/.openclaw/workspace/skills/iammeter npm install
-
Run: node scripts/cli.js sitelist node scripts/cli.js meters node scripts/cli.js meter <device_sn> node scripts/cli.js history 2026-02-01 2026-02-25 --out out.csv
Notes
- Some endpoints have strict rate limits (see references/api.md for details).
- Do not commit real tokens to public repositories.
Credits
- API endpoints and fields from https://www.iammeter.com/swaggerui/swagger.json
About IAMMETER
IAMMETER is an energy monitoring solution provider offering Wi-Fi-based single-phase and three-phase smart meters with multiple open interfaces, including Modbus/TCP, MQTT, HTTP/HTTPS API, TCP, and Local Push protocols. These open communication options make IAMMETER devices easy to integrate with OpenHAB and other open-source platforms.
Learn more about supported protocols and APIs: Device communication protocols: https://www.iammeter.com/newsshow/blog-fw-features
IAMMETER Cloud API: https://www.iammeter.com/docs/system-api

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。