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.txtdrift- 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¶
- Getting Started: installation, core commands, and local docs usage
- CLI Contract: stable automation-facing behavior
- Exit Codes: process exit semantics
- JSON Schema: stable JSON structures and guarantees
- Hardware Matrix: fixture strategy for parser coverage
- Release Process: semver, release candidates, and staged validation
- Known Limitations: unsupported boards, blind spots, and expected false positives
- Maintainer Policy: review, privacy, security, and release responsibilities
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_healthbefore treating missing data as healthy - validate reports against the schemas in
schema/ - use exit codes only for coarse status
- ignore unknown JSON fields