So I am simply wanting to create a Dashboard item using Adafruit.io that displays my RPi Cpu temp. I know there is a command such as
Code: Select all
import os
import time
def measure_temp():
temp = os.popen("vcgencmd measure_temp").readline()
return (temp.replace("temp=",""))
while True:
print(measure_temp())
time.sleep(1)Ta