fix
This commit is contained in:
parent
2a11a528f6
commit
d485016a39
@ -128,9 +128,6 @@ def on_message(client, userdata, msg):
|
||||
print(topic_houseBatterySoC)
|
||||
print(topic_houseBatteryLoadUnload)
|
||||
|
||||
drawblack.rectangle((150, line, 220, 50), fill = 255)
|
||||
drawblack.text((150, line), msg.payload.decode(), font = font10, fill = 0)
|
||||
epd.DisplayPartial(epd.getbuffer(HBlackimage))
|
||||
#print(f"`{msg.topic}`: `{msg.payload.decode()}`")
|
||||
|
||||
client = mqtt_client.Client(client_id, protocol=paho.MQTTv31)
|
||||
@ -162,6 +159,18 @@ try:
|
||||
logging.info(value_energyImportExport)
|
||||
logging.info(value_houseBatterySoC)
|
||||
logging.info(value_houseBatteryLoadUnload)
|
||||
drawblack.rectangle((150, 0, 220, 50), fill = 255)
|
||||
drawblack.text((150, 0), value_pvProduction, font = font10, fill = 0)
|
||||
drawblack.rectangle((150, 15, 220, 50), fill = 255)
|
||||
drawblack.text((150, 15), value_wHouseConsumption, font = font10, fill = 0)
|
||||
drawblack.rectangle((150, 30, 220, 50), fill = 255)
|
||||
drawblack.text((150, 30), value_energyImportExport, font = font10, fill = 0)
|
||||
drawblack.rectangle((150, 45, 220, 50), fill = 255)
|
||||
drawblack.text((150, 45), value_houseBatterySoC, font = font10, fill = 0)
|
||||
drawblack.rectangle((150, 60, 220, 50), fill = 255)
|
||||
drawblack.text((150, 60), value_houseBatteryLoadUnload, font = font10, fill = 0)
|
||||
|
||||
epd.DisplayPartial(epd.getbuffer(HBlackimage))
|
||||
|
||||
except KeyboardInterrupt:
|
||||
print("exiting")
|
||||
|
Loading…
Reference in New Issue
Block a user