Agent Skills
› rcarmo/piclaw
› graphite-power-chart
graphite-power-chart
GitHub生成 Zigbee 设备指标的 Graphite 图表(默认12小时),并以内联 SVG 形式发布到 Web 时间线。支持自定义指标、窗口时长及重采样策略,适用于服务器机房 UPS 或温度等监控场景的数据可视化与展示。
触发场景
需要查看特定时间段内 Zigbee 设备的监控数据趋势
需要将性能或环境指标图表嵌入 Web UI 时间线进行展示
安装
npx skills add rcarmo/piclaw --skill graphite-power-chart -g -y
SKILL.md
Frontmatter
{
"name": "graphite-power-chart",
"description": "Generate a Graphite chart (12h default) for a Zigbee device metric and post it to the web timeline.",
"distribution": "public"
}
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.
版本历史
- 5fa0ce5 当前 2026-07-25 10:25


