From daa73cac520254db8ffdbd9695292e8ad9278c25 Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Thu, 20 Oct 2022 13:53:22 +0200 Subject: [PATCH] fix --- examples/solarmonitor-colored.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/solarmonitor-colored.py b/examples/solarmonitor-colored.py index 12e4c27..d979332 100644 --- a/examples/solarmonitor-colored.py +++ b/examples/solarmonitor-colored.py @@ -115,9 +115,9 @@ try: else: drawblack.text((5, 20), 'Hausverbrauch', font = font16, fill = 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: - 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) if value_houseBatteryLoadUnload > 0: @@ -141,7 +141,7 @@ try: if value_energyImportExport > 0: drawred.text((150, 40), str(value_energyImportExport) + " W", font = font16, fill = 0) 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) if value_houseBatteryLoadUnload > 0: drawblack.text((150, 80), str(value_houseBatteryLoadUnload) + " W", font = font16, fill = 0)