This commit is contained in:
Robert 2024-02-01 23:54:30 +01:00
parent 2242de8b48
commit 2820d65b4a
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ def monitor(topics):
for key in topic_info: for key in topic_info:
print(key + ':', topic_info[key]) print(key + ':', topic_info[key])
drawblack.text((160, topic_info["line"]), topic_info["value"], font = font16, fill = 0) drawblack.text((160, int(topic_info["line"])), topic_info["value"], font = font16, fill = 0)
topic_info["value"] = subscribe(client, topic_info["topic"]) topic_info["value"] = subscribe(client, topic_info["topic"])
#drawblack.text((160, 16), str(house_power), font = font16, fill = 0) #drawblack.text((160, 16), str(house_power), font = font16, fill = 0)