changed data name to cpu_temperature

This commit is contained in:
smallsolar 2024-05-12 20:51:36 +00:00
parent 8c7b2687d6
commit 6a9096cb43
1 changed files with 1 additions and 1 deletions

View File

@ -22,6 +22,6 @@ while True:
f = open("/sys/class/thermal/thermal_zone0/temp", "r") f = open("/sys/class/thermal/thermal_zone0/temp", "r")
raw_temp = f.readline() raw_temp = f.readline()
cpu_temperature = int(raw_temp) / 1000 cpu_temperature = int(raw_temp) / 1000
format_data(host, 'temperature', cpu_temperature) format_data(host, 'cpu_temperature', cpu_temperature)
time.sleep(delay) time.sleep(delay)