int to str for logging

This commit is contained in:
Robert Borzutzki 2022-10-19 21:09:33 +02:00
parent f017c91f34
commit 46f001bba0

View File

@ -125,11 +125,11 @@ try:
print("-----") print("-----")
logging.info("test") logging.info("test")
logging.info("PvP: "+value_pvProduction) logging.info("PvP: "+str(value_pvProduction))
logging.info("Hou: "+value_wHouseConsumption) logging.info("Hou: "+str(value_wHouseConsumption))
logging.info("I/E: "+value_energyImportExport) logging.info("I/E: "+str(value_energyImportExport))
logging.info("SoC: "+value_houseBatterySoC) logging.info("SoC: "+str(value_houseBatterySoC))
logging.info("Bio: "+value_houseBatteryLoadUnload) logging.info("Bio: "+str(value_houseBatteryLoadUnload))
#drawblack.rectangle((150, 0, 220, 50), fill = 255) #drawblack.rectangle((150, 0, 220, 50), fill = 255)
drawblack.text((150, 0), value_pvProduction, font = font10, fill = 0) drawblack.text((150, 0), value_pvProduction, font = font10, fill = 0)
#drawblack.rectangle((150, 15, 220, 50), fill = 255) #drawblack.rectangle((150, 15, 220, 50), fill = 255)