diff --git a/examples/mqtt.py b/examples/mqtt.py index aaa130a..0e60af8 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -125,11 +125,11 @@ try: print("-----") logging.info("test") - logging.info("PvP: "+value_pvProduction) - logging.info("Hou: "+value_wHouseConsumption) - logging.info("I/E: "+value_energyImportExport) - logging.info("SoC: "+value_houseBatterySoC) - logging.info("Bio: "+value_houseBatteryLoadUnload) + logging.info("PvP: "+str(value_pvProduction)) + logging.info("Hou: "+str(value_wHouseConsumption)) + logging.info("I/E: "+str(value_energyImportExport)) + logging.info("SoC: "+str(value_houseBatterySoC)) + logging.info("Bio: "+str(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)