raspberry-pi-manager

by BytesAgain

Manage Raspberry Pi devices — GPIO control, system monitoring (CPU/temp/memory), service management, sensor data reading.

3.8k效率与工作流未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/bytesagain1/raspberry-pi-manager

文档

Raspberry Pi Manager

A command-line toolkit for managing Raspberry Pi operations. Log, track, and organize entries across multiple operational categories — from device connections and syncing to monitoring, automation, notifications, and reporting. All data is stored locally with timestamped history, full-text search, and multi-format export.

Commands

The following commands are available via raspberry-pi-manager <command> [args]:

Core Operations

CommandDescription
connect <input>Log a connection event (e.g. SSH session, network link, peripheral attach). Called without args, shows recent connect entries.
sync <input>Record a sync operation (e.g. file sync, config push, backup mirror). Called without args, shows recent sync entries.
monitor <input>Log a monitoring observation (e.g. CPU temp spike, disk usage alert). Called without args, shows recent monitor entries.
automate <input>Record an automation task (e.g. cron job setup, GPIO script trigger). Called without args, shows recent automate entries.
notify <input>Log a notification event (e.g. email alert sent, Telegram ping). Called without args, shows recent notify entries.
report <input>Save a report note (e.g. weekly summary, incident write-up). Called without args, shows recent report entries.
schedule <input>Record a scheduled task (e.g. reboot at 3 AM, backup every Sunday). Called without args, shows recent schedule entries.
template <input>Store a template entry (e.g. config template, deploy script skeleton). Called without args, shows recent template entries.
webhook <input>Log a webhook event (e.g. incoming POST, IFTTT trigger). Called without args, shows recent webhook entries.
status <input>Record a status update (e.g. Pi online, service healthy). Called without args, shows recent status entries.
analytics <input>Log an analytics data point (e.g. uptime percentage, request count). Called without args, shows recent analytics entries.
export <input>Record an export action. Called without args, shows recent export entries.

Utility Commands

CommandDescription
statsShow summary statistics — entry counts per category, total entries, data size, and earliest record timestamp.
export <fmt>Export all data in json, csv, or txt format. Output file saved to the data directory.
search <term>Full-text search across all log files (case-insensitive).
recentShow the 20 most recent activity entries from the global history log.
statusHealth check — version, data directory path, total entries, disk usage, last activity, and OK status.
helpDisplay the full command reference.
versionPrint the current version (v2.0.0).

Data Storage

All data is persisted locally in ~/.local/share/raspberry-pi-manager/:

  • Per-command logs — Each command (connect, sync, monitor, etc.) writes to its own .log file with YYYY-MM-DD HH:MM|<input> format.
  • Global history — Every action is also appended to history.log with MM-DD HH:MM <command>: <input> format for unified audit trail.
  • Export files — Generated exports are saved as export.json, export.csv, or export.txt in the same directory.

No external services, databases, or network connections are required. Everything runs locally via bash.

Requirements

  • Bash 4+ (uses local variables, set -euo pipefail)
  • Standard Unix utilities: date, wc, du, head, tail, grep, basename, cat
  • No root privileges needed
  • No external dependencies or package installs

When to Use

  1. Tracking Pi fleet operations — Log connect/sync/monitor events across multiple Raspberry Pi devices to maintain an operational journal.
  2. Building an automation audit trail — Record every automation task and webhook trigger so you can trace what happened and when.
  3. Generating operational reports — Use stats, recent, and export to produce summaries for weekly reviews or incident investigations.
  4. Organizing scheduled maintenance — Use schedule to document planned tasks (reboots, updates, backups) and notify to log alert dispatches.
  5. Searching historical records — Use search to quickly find past events across all categories when troubleshooting an issue.

Examples

bash
# Log a new SSH connection to a Pi
raspberry-pi-manager connect "SSH to pi@192.168.1.50 — firmware update session"

# Record a file sync event
raspberry-pi-manager sync "rsync /home/pi/data → NAS backup completed, 2.3GB transferred"

# Log a temperature monitoring alert
raspberry-pi-manager monitor "CPU temp 72°C on pi-node-3 — fan triggered"

# Record an automation task
raspberry-pi-manager automate "Cron job added: /home/pi/scripts/backup.sh every Sunday 02:00"

# View summary statistics
raspberry-pi-manager stats

# Export all data as JSON
raspberry-pi-manager export json

# Search for all entries mentioning 'backup'
raspberry-pi-manager search backup

# Check overall health status
raspberry-pi-manager status

# View the 20 most recent activities
raspberry-pi-manager recent

How It Works

Each command follows the same pattern:

  1. With arguments — Timestamps the input, appends it to the command-specific log file, increments the entry count, and writes to the global history log.
  2. Without arguments — Displays the 20 most recent entries from that command's log file.

The stats command aggregates counts across all log files. The export command iterates through all logs and produces a unified output in your chosen format. The search command performs a case-insensitive grep across every log file.


Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

相关 Skills

技能工坊

by anthropics

Universal
热门

覆盖 Skill 从创建到迭代优化全流程:起草能力、补测试提示、跑评测与基准方差分析,并持续改写内容和描述,提升效果与触发准确率。

技能工坊把技能从创建、迭代到评测串成闭环,方差分析加描述优化,特别适合把触发准确率打磨得更稳。

效率与工作流
未扫描111.1k

表格处理

by anthropics

Universal
热门

围绕 .xlsx、.xlsm、.csv、.tsv 做读写、修复、清洗、格式整理、公式计算与格式转换,适合修改现有表格、生成新报表或把杂乱数据整理成交付级电子表格。

做 Excel/CSV 相关任务很省心,能直接读写、修复、清洗和格式转换,尤其擅长把乱七八糟的表格整理成交付级文件。

效率与工作流
未扫描111.1k

PDF处理

by anthropics

Universal
热门

遇到 PDF 读写、文本表格提取、合并拆分、旋转加水印、表单填写或加解密时直接用它,也能提取图片、生成新 PDF,并把扫描件通过 OCR 变成可搜索文档。

PDF杂活别再来回切工具了,文本表格提取、合并拆分到OCR识别一次搞定,连扫描件也能变可搜索。

效率与工作流
未扫描111.1k

相关 MCP 服务

文件系统

编辑精选

by Anthropic

热门

Filesystem 是 MCP 官方参考服务器,让 LLM 安全读写本地文件系统。

这个服务器解决了让 Claude 直接操作本地文件的痛点,比如自动整理文档或生成代码文件。适合需要自动化文件处理的开发者,但注意它只是参考实现,生产环境需自行加固安全。

效率与工作流
83.0k

by wonderwhy-er

热门

Desktop Commander 是让 AI 直接执行终端命令、管理文件和进程的 MCP 服务器。

这工具解决了 AI 无法直接操作本地环境的痛点,适合需要自动化脚本调试或文件批量处理的开发者。它能让你用自然语言指挥终端,但权限控制需谨慎,毕竟让 AI 执行 rm -rf 可不是闹着玩的。

效率与工作流
5.9k

EdgarTools

编辑精选

by dgunning

热门

EdgarTools 是无需 API 密钥即可解析 SEC EDGAR 财报的开源 Python 库。

这个工具解决了金融数据获取的痛点——直接让 AI 读取结构化财报,比如让 Claude 分析苹果的 10-K 文件。适合量化分析师或金融开发者快速构建数据管道。但注意,它依赖 SEC 网站稳定性,高峰期可能延迟。

效率与工作流
2.0k

评论