/install iammeter-openclaw
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=\x3Cyour_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 \x3Cdevice_sn> node scripts/cli.js history \x3CplaceId> 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

- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install iammeter-openclaw - 安装完成后,直接呼叫该 Skill 的名称或使用
/iammeter-openclaw触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
IAMMETER 是什么?
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 513 次。
如何安装 IAMMETER?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install iammeter-openclaw」即可一键安装,无需额外配置。
IAMMETER 是免费的吗?
是的,IAMMETER 完全免费(开源免费),可自由下载、安装和使用。
IAMMETER 支持哪些平台?
IAMMETER 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 IAMMETER?
由 IAMMETER(@iammeter)开发并维护,当前版本 v0.2.0。