Generate a Graphite chart (12h default) for a Zigbee device metric and post it to the web timeline.
Resources
1Install
npx skillscat add rcarmo/piclaw/graphite-power-chart Install via the SkillsCat registry.
SKILL.md
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/piclaw/skills/graphite-power-chart/graphite-power-chart.ts \
--device server_closet_ups_power --ipcTemperature chart (explicit metric + unit)
bun /workspace/piclaw/piclaw/skills/graphite-power-chart/graphite-power-chart.ts \
--metric zigbee.server_closet_temperature.temperature \
--label Temperature --unit "°C" \
--ipcOverride the window and resampling
bun /workspace/piclaw/piclaw/skills/graphite-power-chart/graphite-power-chart.ts \
--device server_closet_ups_power --hours 24 --resample 10min --ipcNotes
- Default window is 12 hours.
- Resampling is auto-selected based on window length using Graphite
summarize(..., "avg"). - Use
--resample rawto disable resampling. - Output is posted to the web timeline using the IPC message bus (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.