From c1fe677fc2e290c3a6dd55a4e8a2c6bf0ace1ec4 Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Wed, 19 Oct 2022 10:53:53 +0200 Subject: [PATCH] k --- examples/mqtt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/mqtt.py b/examples/mqtt.py index 3ce8e5b..980f305 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -76,6 +76,8 @@ def on_message(client, userdata, msg): line = 45 elif msg.topic == "openWB/housebattery/W": line = 60 + + print(line) drawblack.text((150, line), {msg.payload.decode()}, font = font10, fill = 0) epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage)) #print(f"`{msg.topic}`: `{msg.payload.decode()}`")