Graphite Power Chart
Apps & Automationgraphite-power-chartGraphite Power Chart is an Agent Skill for apps & automation published in the rcarmo/piclaw repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Generate a Graphite chart (12h default) for a Zigbee device metric and post it to the web timeline.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/rcarmo/piclaw/blob/HEAD/runtime/skills/operator/graphite-power-chart/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/graphite-power-chart, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Graphite power chart
Generate a 12-hour chart for a Zigbee device and post it to the web UI timeline. The script lives alongside this skill for easy adaptation to other data sources.
Usage
Power chart for the server closet UPS (default 12h)
bun /workspace/piclaw/runtime/skills/operator/graphite-power-chart/graphite-power-chart.ts \
--device server_closet_ups_power --ipc
Temperature chart (explicit metric + unit)
bun /workspace/piclaw/runtime/skills/operator/graphite-power-chart/graphite-power-chart.ts \
--metric zigbee.server_closet_temperature.temperature \
--label Temperature --unit "°C" \
--ipc
Override the window and resampling
bun /workspace/piclaw/runtime/skills/operator/graphite-power-chart/graphite-power-chart.ts \
--device server_closet_ups_power --hours 24 --resample 10min --ipc
Notes
- Default window is 12 hours.
- Resampling is auto-selected based on window length using Graphite
summarize(..., "avg"). - Use
--resample rawto disable resampling. --ipcposts the chart to the web timeline as an inline SVG attachment (no push by default).- Default Graphite base URL:
http://192.168.1.250:8086(override with--base-urlorGRAPHITE_BASE_URL). - Set a full
--metricto adapt to other data sources.