Summary
Log PhotonVision coprocessor (OrangePi) temperatures to AdvantageKit for thermal monitoring during matches.
Background
PhotonVision does not expose coprocessor or camera temperatures via NetworkTables, PhotonLib, or any documented REST API. The web UI (port 5800) shows CPU/memory stats internally, but this data is not accessible programmatically.
Proposed Implementation
- Add a small script on each OrangePi that reads
/sys/class/thermal/thermal_zone0/temp and publishes it as an NT4 entry (e.g. /coprocessor/pv1/tempCelsius)
- Run the script as a systemd service or cronjob on startup
- Subscribe to those NT entries from the robot and log them via
Logger.recordOutput("Vision/Coprocessor/PV1TempCelsius", ...)
Blockers
- Need SSH credentials for pv1.local / pv2.local (10.23.63.201 / 10.23.63.202) to install the script
- Need to verify the correct thermal zone path on OrangePi 5 hardware (may differ from
/sys/class/thermal/thermal_zone0/temp)
Coprocessors
| Name |
IP |
| pv1 |
10.23.63.201 |
| pv2 |
10.23.63.202 |
Summary
Log PhotonVision coprocessor (OrangePi) temperatures to AdvantageKit for thermal monitoring during matches.
Background
PhotonVision does not expose coprocessor or camera temperatures via NetworkTables, PhotonLib, or any documented REST API. The web UI (port 5800) shows CPU/memory stats internally, but this data is not accessible programmatically.
Proposed Implementation
/sys/class/thermal/thermal_zone0/tempand publishes it as an NT4 entry (e.g./coprocessor/pv1/tempCelsius)Logger.recordOutput("Vision/Coprocessor/PV1TempCelsius", ...)Blockers
/sys/class/thermal/thermal_zone0/temp)Coprocessors