Go to advanced search

by krisztianlukacs
Sun Mar 25, 2018 4:48 pm
Forum: Python
Topic: RPi CPU temp with Python
Replies: 15
Views: 15625

Re: RPi CPU temp with Python

Code: Select all

import io 

f = open("/sys/class/thermal/thermal_zone0/temp", "r")
t = f.readline ()

cputemp = "CPU temp: "+t

print (cputemp)

Go to advanced search