This commit is contained in:
Robert Borzutzki 2022-10-19 10:53:53 +02:00
parent b2506c6b23
commit c1fe677fc2

View File

@ -76,6 +76,8 @@ def on_message(client, userdata, msg):
line = 45 line = 45
elif msg.topic == "openWB/housebattery/W": elif msg.topic == "openWB/housebattery/W":
line = 60 line = 60
print(line)
drawblack.text((150, line), {msg.payload.decode()}, font = font10, fill = 0) drawblack.text((150, line), {msg.payload.decode()}, font = font10, fill = 0)
epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage)) epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage))
#print(f"`{msg.topic}`: `{msg.payload.decode()}`") #print(f"`{msg.topic}`: `{msg.payload.decode()}`")