{"skill":{"slug":"raspberry-pi-manager","displayName":"Raspberry Pi Manager","summary":"Manage Raspberry Pi devices — GPIO control, system monitoring (CPU/temp/memory), service management, sensor data reading.","description":"---\nversion: \"2.0.0\"\nname: raspberry-pi-manager\ndescription: \"Manage Raspberry Pi devices — GPIO control, system monitoring (CPU/temp/memory), service management, sensor data reading.\"\nauthor: BytesAgain\nhomepage: https://bytesagain.com\nsource: https://github.com/bytesagain/ai-skills\n---\n\n# Raspberry Pi Manager\n\nA 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.\n\n## Commands\n\nThe following commands are available via `raspberry-pi-manager <command> [args]`:\n\n### Core Operations\n\n| Command | Description |\n|---------|-------------|\n| `connect <input>` | Log a connection event (e.g. SSH session, network link, peripheral attach). Called without args, shows recent connect entries. |\n| `sync <input>` | Record a sync operation (e.g. file sync, config push, backup mirror). Called without args, shows recent sync entries. |\n| `monitor <input>` | Log a monitoring observation (e.g. CPU temp spike, disk usage alert). Called without args, shows recent monitor entries. |\n| `automate <input>` | Record an automation task (e.g. cron job setup, GPIO script trigger). Called without args, shows recent automate entries. |\n| `notify <input>` | Log a notification event (e.g. email alert sent, Telegram ping). Called without args, shows recent notify entries. |\n| `report <input>` | Save a report note (e.g. weekly summary, incident write-up). Called without args, shows recent report entries. |\n| `schedule <input>` | Record a scheduled task (e.g. reboot at 3 AM, backup every Sunday). Called without args, shows recent schedule entries. |\n| `template <input>` | Store a template entry (e.g. config template, deploy script skeleton). Called without args, shows recent template entries. |\n| `webhook <input>` | Log a webhook event (e.g. incoming POST, IFTTT trigger). Called without args, shows recent webhook entries. |\n| `status <input>` | Record a status update (e.g. Pi online, service healthy). Called without args, shows recent status entries. |\n| `analytics <input>` | Log an analytics data point (e.g. uptime percentage, request count). Called without args, shows recent analytics entries. |\n| `export <input>` | Record an export action. Called without args, shows recent export entries. |\n\n### Utility Commands\n\n| Command | Description |\n|---------|-------------|\n| `stats` | Show summary statistics — entry counts per category, total entries, data size, and earliest record timestamp. |\n| `export <fmt>` | Export all data in `json`, `csv`, or `txt` format. Output file saved to the data directory. |\n| `search <term>` | Full-text search across all log files (case-insensitive). |\n| `recent` | Show the 20 most recent activity entries from the global history log. |\n| `status` | Health check — version, data directory path, total entries, disk usage, last activity, and OK status. |\n| `help` | Display the full command reference. |\n| `version` | Print the current version (`v2.0.0`). |\n\n## Data Storage\n\nAll data is persisted locally in `~/.local/share/raspberry-pi-manager/`:\n\n- **Per-command logs** — Each command (connect, sync, monitor, etc.) writes to its own `.log` file with `YYYY-MM-DD HH:MM|<input>` format.\n- **Global history** — Every action is also appended to `history.log` with `MM-DD HH:MM <command>: <input>` format for unified audit trail.\n- **Export files** — Generated exports are saved as `export.json`, `export.csv`, or `export.txt` in the same directory.\n\nNo external services, databases, or network connections are required. Everything runs locally via bash.\n\n## Requirements\n\n- **Bash 4+** (uses `local` variables, `set -euo pipefail`)\n- Standard Unix utilities: `date`, `wc`, `du`, `head`, `tail`, `grep`, `basename`, `cat`\n- No root privileges needed\n- No external dependencies or package installs\n\n## When to Use\n\n1. **Tracking Pi fleet operations** — Log connect/sync/monitor events across multiple Raspberry Pi devices to maintain an operational journal.\n2. **Building an automation audit trail** — Record every automation task and webhook trigger so you can trace what happened and when.\n3. **Generating operational reports** — Use `stats`, `recent`, and `export` to produce summaries for weekly reviews or incident investigations.\n4. **Organizing scheduled maintenance** — Use `schedule` to document planned tasks (reboots, updates, backups) and `notify` to log alert dispatches.\n5. **Searching historical records** — Use `search` to quickly find past events across all categories when troubleshooting an issue.\n\n## Examples\n\n```bash\n# Log a new SSH connection to a Pi\nraspberry-pi-manager connect \"SSH to pi@192.168.1.50 — firmware update session\"\n\n# Record a file sync event\nraspberry-pi-manager sync \"rsync /home/pi/data → NAS backup completed, 2.3GB transferred\"\n\n# Log a temperature monitoring alert\nraspberry-pi-manager monitor \"CPU temp 72°C on pi-node-3 — fan triggered\"\n\n# Record an automation task\nraspberry-pi-manager automate \"Cron job added: /home/pi/scripts/backup.sh every Sunday 02:00\"\n\n# View summary statistics\nraspberry-pi-manager stats\n\n# Export all data as JSON\nraspberry-pi-manager export json\n\n# Search for all entries mentioning 'backup'\nraspberry-pi-manager search backup\n\n# Check overall health status\nraspberry-pi-manager status\n\n# View the 20 most recent activities\nraspberry-pi-manager recent\n```\n\n## How It Works\n\nEach command follows the same pattern:\n\n1. **With arguments** — Timestamps the input, appends it to the command-specific log file, increments the entry count, and writes to the global history log.\n2. **Without arguments** — Displays the 20 most recent entries from that command's log file.\n\nThe `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.\n\n---\n\nPowered by BytesAgain | bytesagain.com | hello@bytesagain.com\n","tags":{"latest":"2.0.1","chinese":"1.0.0","productivity":"1.0.0"},"stats":{"comments":0,"downloads":951,"installsAllTime":1,"installsCurrent":1,"stars":0,"versions":13},"createdAt":1773231456942,"updatedAt":1778997905266},"latestVersion":{"version":"2.0.1","createdAt":1773830960575,"changelog":"update","license":"MIT-0"},"metadata":{"setup":[],"os":null,"systems":null},"owner":{"handle":"bytesagain-lab","userId":"s174pq5f3gzez3838vt2642fmx848f1d","displayName":"bytesagain-lab","image":"https://avatars.githubusercontent.com/u/271735676?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1780089958778}}