Skip to content

pi-doctor

Human-first Raspberry Pi diagnostics.

pi-doctor is a read-only CLI for checking common Raspberry Pi problems such as:

  • identity mismatches
  • thermal throttling
  • config.txt drift
  • GPIO conflicts
  • camera detection problems
  • Python environment pitfalls

Quick Start

Run the main diagnostics:

pi-doctor check

Emit machine-readable output:

pi-doctor --json check

Bound external probe commands:

pi-doctor --timeout 5 check

Run focused help:

pi-doctor explain throttling
pi-doctor doctor gpio
pi-doctor support-bundle --dry-run
pi-doctor support-bundle --output ./bundles

Documentation Map

Automation Guidance

If you are integrating with pi-doctor from scripts or CI:

  • prefer pi-doctor check --json
  • gate behavior on schema_version
  • inspect probe_health before treating missing data as healthy
  • validate reports against the schemas in schema/
  • use exit codes only for coarse status
  • ignore unknown JSON fields