Agent Skillsrcarmo/piclaw › graphite-power-chart

graphite-power-chart

GitHub

生成 Zigbee 设备指标的 Graphite 图表并推送到 Web UI 时间线,支持自定义指标、时间窗口和重采样策略。

skel/.pi/skills/graphite-power-chart/SKILL.md rcarmo/piclaw

Trigger Scenarios

查看 Zigbee 设备(如 UPS)的功率或温度历史趋势 需要将监控数据可视化并集成到 Web 界面中

Install

npx skills add rcarmo/piclaw --skill graphite-power-chart -g -y
More Options

Non-standard path

npx skills add https://github.com/rcarmo/piclaw/tree/main/skel/.pi/skills/graphite-power-chart -g -y

Use without installing

npx skills use rcarmo/piclaw@graphite-power-chart

指定 Agent (Claude Code)

npx skills add rcarmo/piclaw --skill graphite-power-chart -a claude-code -g -y

安装 repo 全部 skill

npx skills add rcarmo/piclaw --all -g -y

预览 repo 内 skill

npx skills add rcarmo/piclaw --list

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

Use this skill to generate a 12-hour chart for a Zigbee device and post it to the web UI timeline. The script lives alongside this skill so it can be adapted to other data sources.

Usage

Power chart for the server closet UPS (default 12h)

bun /workspace/.pi/skills/graphite-power-chart/graphite-power-chart.ts \
  --device server_closet_ups_power --ipc

Temperature chart (explicit metric + unit)

bun /workspace/.pi/skills/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/.pi/skills/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 raw to disable resampling.
  • --ipc posts 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-url or GRAPHITE_BASE_URL).
  • Set a full --metric to adapt to other data sources.

Version History

  • 5fa0ce5 Current 2026-07-25 10:25

Same Skill Collection

runtime/skills/builtin/reload/SKILL.md
runtime/skills/builtin/remote-peer/SKILL.md
runtime/skills/builtin/schedule/SKILL.md
runtime/skills/builtin/script-discovery-annotation/SKILL.md
runtime/skills/builtin/send-message/SKILL.md
runtime/skills/integrations/playwright/SKILL.md
runtime/skills/operator/graphite-power-chart/SKILL.md
runtime/skills/operator/token-chart/SKILL.md
skel/.pi/skills/adaptive-cards-authoring/SKILL.md
skel/.pi/skills/bootstrap-container/SKILL.md
skel/.pi/skills/debug/SKILL.md
skel/.pi/skills/export-timeline-pdf/SKILL.md
skel/.pi/skills/extension-design/SKILL.md
skel/.pi/skills/extension-troubleshoot/SKILL.md
skel/.pi/skills/feature-refinement-flow/SKILL.md
skel/.pi/skills/feed-digest/SKILL.md
skel/.pi/skills/graph-design/SKILL.md
skel/.pi/skills/kanban-management/SKILL.md
skel/.pi/skills/mcp-adapter/SKILL.md
skel/.pi/skills/playwright/SKILL.md
skel/.pi/skills/reload/SKILL.md
skel/.pi/skills/remote-peer/SKILL.md
skel/.pi/skills/schedule/SKILL.md
skel/.pi/skills/script-discovery-annotation/SKILL.md
skel/.pi/skills/send-message/SKILL.md
skel/.pi/skills/setup/SKILL.md
skel/.pi/skills/situate-daily-notes/SKILL.md
skel/.pi/skills/technical-docs/SKILL.md
skel/.pi/skills/timeline-cleanup/SKILL.md
skel/.pi/skills/token-chart/SKILL.md
skel/.pi/skills/twitter-summary/SKILL.md
skel/.pi/skills/web-search-summary/SKILL.md
skel/.pi/skills/web-search/SKILL.md

Metadata

Files
0
Version
ae927fb
Hash
19691317
Indexed
2026-07-25 10:25

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 11:54
浙ICP备14020137号-1 $Гость$