कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

pi-health

josunlp द्वारा

DevOps & Cloud
1.0kclawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Raspberry Pi health monitor.

विवरण

यह स्किल क्या करती है

Runs a shell script that checks the health of a Raspberry Pi by reading CPU temperature, throttling flags, voltage levels, memory and disk usage, fan RPM, load averages, and overclock settings. Works on Pi 3, 4, and 5 running Raspberry Pi OS Bookworm or later. Returns exit codes 0, 1, or 2 to indicate healthy, warning, or critical states.

Consolidates a dozen separate vcgencmd and sysfs queries into a single script with structured exit codes, making it easy to integrate into cron jobs or monitoring pipelines.

इसे कब इस्तेमाल करें

  • Checking if a Pi is thermally throttling under load
  • Diagnosing under-voltage issues from a weak power supply
  • Verifying system stability before a long-running job
  • Monitoring fan operation on a Pi 5 with active cooling
  • Detecting unauthorized overclocking on a shared Pi

उदाहरण वर्कफ़्लो

इनपुट

User runs: bash scripts/health.sh

एजेंट
  1. 1

    Reads CPU temperature from thermal_zone0

  2. 2

    Calls vcgencmd get_throttled to check throttling and under-voltage flags

  3. 3

    Reads memory and disk usage via free and df

  4. 4

    Checks fan RPM from hwmon sysfs and CPU frequency from cpufreq sysfs

  5. 5

    Reads load average from /proc/loadavg and scans dmesg for power warnings

आउटपुट

Prints a health summary table with warning/critical annotations and exits with code 0 (healthy), 1 (warnings), or 2 (critical)

इंस्टॉलेशन

clawhub install josunlp/pi-health

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक