Skip to content

Log OrangePi coprocessor temperatures to AKit #156

Description

@nlaverdure

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

  1. 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)
  2. Run the script as a systemd service or cronjob on startup
  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions