From 090b1066e578d9286468464fc98926284b267a8b Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Thu, 20 Oct 2022 13:57:13 +0200 Subject: [PATCH] fix --- examples/solarmonitor-colored.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/solarmonitor-colored.py b/examples/solarmonitor-colored.py index d979332..c64a2df 100644 --- a/examples/solarmonitor-colored.py +++ b/examples/solarmonitor-colored.py @@ -125,7 +125,7 @@ try: elif value_houseBatteryLoadUnload < 0: drawred.text((5, 80), 'Batterie Entladen', font = font16, fill = 0) else: - drawred.text((5, 80), 'Batterie', font = font16, fill = 0) + drawblack.text((5, 80), 'Batterie', font = font16, fill = 0) logging.info("-----") logging.info("PvProd: "+str(value_pvProduction)) @@ -143,7 +143,7 @@ try: else: drawblack.text((150, 40), str(-value_energyImportExport) + " W", 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) else: drawred.text((150, 80), str(value_houseBatteryLoadUnload) + " W", font = font16, fill = 0)