This commit is contained in:
Robert Borzutzki 2022-10-20 13:53:22 +02:00
parent 155bfd19f1
commit daa73cac52

View File

@ -115,9 +115,9 @@ try:
else: else:
drawblack.text((5, 20), 'Hausverbrauch', font = font16, fill = 0) drawblack.text((5, 20), 'Hausverbrauch', font = font16, fill = 0)
if value_energyImportExport > 0: if value_energyImportExport > 0:
drawred.text((5, 40), 'Strom Import', font = font16, fill = 0) drawred.text((7, 40), 'Strom Import', font = font16, fill = 0)
else: else:
drawblack.text((5, 40), 'Strom Export', font = font16, fill = 0) drawblack.text((7, 40), 'Strom Export', font = font16, fill = 0)
drawblack.text((5, 60), 'Batterie', font = font16, fill = 0) drawblack.text((5, 60), 'Batterie', font = font16, fill = 0)
if value_houseBatteryLoadUnload > 0: if value_houseBatteryLoadUnload > 0:
@ -141,7 +141,7 @@ try:
if value_energyImportExport > 0: if value_energyImportExport > 0:
drawred.text((150, 40), str(value_energyImportExport) + " W", font = font16, fill = 0) drawred.text((150, 40), str(value_energyImportExport) + " W", font = font16, fill = 0)
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)