返回顶部
h

homelab-assets

Track and manage homelab hardware inventory — servers, switches, UPS units, drives, cables, and accessories. Records purchase dates, prices, warranty expiration, power draw, and physical location. Answers questions like "What's my total homelab spend?", "What warranties expire this year?", "What's my estimated monthly power cost?", and generates insurance-ready asset reports. Triggers on: homelab inventory, hardware assets, what hardware do I have, warranty check, homelab spend, asset tracker, i

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
63
下载量
0
收藏
概述
安装方式
版本历史

homelab-assets

# Homelab Assets Skill Manages a local JSON inventory of homelab hardware. All data lives at `~/.openclaw/workspace/homelab-assets/inventory.json`. ## Scripts All scripts live in `scripts/`. Run with `python3 scripts/<script>.py [args]`. Use `--help` on any script for full usage. ### add_asset.py — Add a hardware asset ``` python3 scripts/add_asset.py \ --name "Raspberry Pi 4" \ --type server \ --brand Raspberry Pi Foundation \ --model "Pi 4 Model B 8GB" \ --purchase-date 2023-06-15 \ --purchase-price 85.00 \ --warranty-months 12 \ --power-watts 8 \ --location "Rack Shelf 2" \ --serial ABC123 \ --notes "Runs Home Assistant" ``` Required: `--name`, `--type`. All others optional. UUID auto-generated. Types: `server`, `switch`, `router`, `ups`, `drive`, `cable`, `accessory`, `other` ### update_asset.py — Update an existing asset ``` python3 scripts/update_asset.py --id <uuid> --status retired --location "Storage Box A" python3 scripts/update_asset.py --search "Pi 4" --notes "Repurposed as DNS server" --power-watts 6 ``` Target by `--id` (exact UUID) or `--search` (fuzzy name match). Updatable fields: `--status`, `--location`, `--notes`, `--power-watts`. Statuses: `active`, `retired`, `sold`, `rma` ### inventory.py — List assets ``` python3 scripts/inventory.py python3 scripts/inventory.py --type server --status active python3 scripts/inventory.py --location "Rack" --warranty-expiring 90 python3 scripts/inventory.py --output json ``` Filters: `--type`, `--status`, `--location` (substring), `--warranty-expiring <days>`. Output: table (default) or `--output json`. ### report.py — Generate full asset report ``` python3 scripts/report.py python3 scripts/report.py --kwh-rate 0.14 --output report.md ``` Produces Markdown with: total assets, total investment, estimated current value (straight-line depreciation over 5 years), total power draw, monthly power cost estimate, warranty alerts (expiring within 90 days), assets by type, assets by location. Configurable `--kwh-rate` (default: 0.12). ### search.py — Fuzzy search across all fields ``` python3 scripts/search.py "raspberry" python3 scripts/search.py "rack shelf" --output json ``` Searches name, brand, model, location, notes, serial, type. Case-insensitive substring match across all text fields. ## Data Location Default: `~/.openclaw/workspace/homelab-assets/inventory.json` Override with env var: `HOMELAB_ASSETS_PATH=/path/to/inventory.json` ## References See `references/power-estimates.md` for common homelab device power draw estimates. See `assets/inventory.example.json` for example asset structure.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 homelab-assets-1775931313 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 homelab-assets-1775931313 技能

通过命令行安装

skillhub install homelab-assets-1775931313

下载 Zip 包

⬇ 下载 homelab-assets v1.0.0

文件大小: 13.94 KB | 发布时间: 2026-4-12 10:12

v1.0.0 最新 2026-4-12 10:12
Initial release of homelab-assets.

- Track and manage homelab hardware inventory, including servers, switches, UPS units, drives, cables, and accessories.
- Records key asset details: purchase info, warranty dates, power draw, and physical location.
- Answer questions about inventory, homelab spend, upcoming warranty expirations, and estimated power costs.
- Generate insurance-ready asset reports and detailed Markdown summaries.
- Includes scripts for adding, updating, searching, listing, and reporting on hardware assets using a local JSON file.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部