test
This commit is contained in:
parent
6f5bfc25d9
commit
820ad99a2f
@ -113,12 +113,12 @@ def monitor(topics):
|
|||||||
HRYimage = Image.new('1', (epd.height, epd.width), 255) # 298*126 ryimage: red or yellow image
|
HRYimage = Image.new('1', (epd.height, epd.width), 255) # 298*126 ryimage: red or yellow image
|
||||||
drawblack = ImageDraw.Draw(HBlackimage)
|
drawblack = ImageDraw.Draw(HBlackimage)
|
||||||
drawry = ImageDraw.Draw(HRYimage)
|
drawry = ImageDraw.Draw(HRYimage)
|
||||||
drawblack.text((2, 0), 'PV Production', font = font16, fill = 0)
|
drawblack.text((4, 0), 'PV Production', font = font16, fill = 0)
|
||||||
drawblack.text((2, 16), 'Hausverbrauch', font = font16, fill = 0)
|
drawblack.text((4, 16), 'Hausverbrauch', font = font16, fill = 0)
|
||||||
drawblack.text((2, 32), 'Strom Import', font = font16, fill = 0)
|
drawblack.text((4, 32), 'Strom Import', font = font16, fill = 0)
|
||||||
drawblack.text((2, 48), 'Batterie', font = font16, fill = 0)
|
drawblack.text((4, 48), 'Batterie', font = font16, fill = 0)
|
||||||
drawblack.text((2, 64), 'Batterie Entladen', font = font16, fill = 0)
|
drawblack.text((4, 64), 'Batterie Entladen', font = font16, fill = 0)
|
||||||
drawblack.text((2, 80), 'Auto Laden', font = font16, fill = 0)
|
drawblack.text((4, 80), 'Auto Laden', font = font16, fill = 0)
|
||||||
|
|
||||||
for topic_id, topic_info in topics.items():
|
for topic_id, topic_info in topics.items():
|
||||||
print("\nTopic ID:", topic_id)
|
print("\nTopic ID:", topic_id)
|
||||||
@ -127,8 +127,7 @@ def monitor(topics):
|
|||||||
print(key + ':', topic_info[key])
|
print(key + ':', topic_info[key])
|
||||||
print(topic_info["line"])
|
print(topic_info["line"])
|
||||||
print(topic_info["value"])
|
print(topic_info["value"])
|
||||||
|
drawblack.text((160, int("0")), topic_info["value"], font = font16, fill = 0)
|
||||||
drawblack.text((160, int(topic_info["line"])), topic_info["value"], font = font16, fill = 0)
|
|
||||||
|
|
||||||
#drawblack.text((160, 16), str(house_power), font = font16, fill = 0)
|
#drawblack.text((160, 16), str(house_power), font = font16, fill = 0)
|
||||||
#drawblack.text((160, 32), str(power_import_export), font = font16, fill = 0)
|
#drawblack.text((160, 32), str(power_import_export), font = font16, fill = 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user