This commit is contained in:
Robert Borzutzki 2022-10-20 13:57:13 +02:00
parent daa73cac52
commit 090b1066e5

View File

@ -125,7 +125,7 @@ try:
elif value_houseBatteryLoadUnload < 0: elif value_houseBatteryLoadUnload < 0:
drawred.text((5, 80), 'Batterie Entladen', font = font16, fill = 0) drawred.text((5, 80), 'Batterie Entladen', font = font16, fill = 0)
else: else:
drawred.text((5, 80), 'Batterie', font = font16, fill = 0) drawblack.text((5, 80), 'Batterie', font = font16, fill = 0)
logging.info("-----") logging.info("-----")
logging.info("PvProd: "+str(value_pvProduction)) logging.info("PvProd: "+str(value_pvProduction))
@ -143,7 +143,7 @@ try:
else: else:
drawblack.text((150, 40), str(-value_energyImportExport) + " W", font = font16, fill = 0) drawblack.text((150, 40), str(-value_energyImportExport) + " W", font = font16, fill = 0)
drawblack.text((150, 60), str(value_houseBatterySoC) + " %", font = font16, fill = 0) drawblack.text((150, 60), str(value_houseBatterySoC) + " %", font = font16, fill = 0)
if value_houseBatteryLoadUnload > 0: if value_houseBatteryLoadUnload >= 0:
drawblack.text((150, 80), str(value_houseBatteryLoadUnload) + " W", font = font16, fill = 0) drawblack.text((150, 80), str(value_houseBatteryLoadUnload) + " W", font = font16, fill = 0)
else: else:
drawred.text((150, 80), str(value_houseBatteryLoadUnload) + " W", font = font16, fill = 0) drawred.text((150, 80), str(value_houseBatteryLoadUnload) + " W", font = font16, fill = 0)