/pi-agent

A not-too-serious system agent to monitor the health of your Raspberry Pi. Uses OpenAI.

Primary LanguagePythonMIT LicenseMIT

Pi Agent - reporting the health of your Raspberry Pi via GPT

  • collect system information via:
    • mpstat -o JSON
    • df -h
    • free -h
    • pgrep -f octoprint
    • vcgencmd measure_temp
  • ask GPT what to make of this and whether to raise an alarm
  • send notification via Pushover
flowchart TD 
A[Start] --> B[Collect System Metrics]
B --> D[Analyze Report with GPT-3]
D --> F{Is Alert Needed?}
F -->|True|G[Send Notification]
F -->|False|H[Log Status & Exit] 
G --> I[End] 
H --> I