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)