Jetson Nano - Monitoring the temperature via python

Is there a way to get the cpu temperature via python?

I want to monitor the temperature while I let my nano run object detection for an extended period of time.

Hi angelo_v,

No, we don’t have the sample for python. You may refer to current method to implement it.

Hi you can use.

cat /sys/devices/virtual/thermal/thermal_zone*/temp command from python.

For example

import os

temp = os.popen(“cat /sys/devices/virtual/thermal/thermal_zone0/temp”).read()
print ( temp )


result will be the temperature from the thermal zone 0.