This commit is contained in:
Robert Borzutzki 2022-10-19 19:14:43 +02:00
parent f0f45564af
commit 3b9e4f65c5

View File

@ -68,7 +68,7 @@ try:
drawblack.text((5, 45), 'Batterie %', font = font10, fill = 0) drawblack.text((5, 45), 'Batterie %', font = font10, fill = 0)
drawblack.text((5, 60), 'Batterie Laden/Entladen', font = font10, fill = 0) drawblack.text((5, 60), 'Batterie Laden/Entladen', font = font10, fill = 0)
#epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage)) #epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage))
epd.DisplayPartial(epd.getbuffer(HBlackimage)) epd.display(epd.getbuffer(HBlackimage))
#values_image = Image.new('1', (epd.height, epd.width), 255) #values_image = Image.new('1', (epd.height, epd.width), 255)
#values_draw = ImageDraw.Draw(values_image) #values_draw = ImageDraw.Draw(values_image)
@ -161,7 +161,7 @@ try:
logging.info(value_energyImportExport) logging.info(value_energyImportExport)
logging.info(value_houseBatterySoC) logging.info(value_houseBatterySoC)
logging.info(value_houseBatteryLoadUnload) logging.info(value_houseBatteryLoadUnload)
drawblack.rectangle((150, 0, 220, 50), fill = 0) drawblack.rectangle((150, 0, 220, 50), fill = 1)
drawblack.text((150, 0), value_pvProduction, font = font10, fill = 0) drawblack.text((150, 0), value_pvProduction, font = font10, fill = 0)
drawblack.rectangle((150, 15, 220, 50), fill = 255) drawblack.rectangle((150, 15, 220, 50), fill = 255)
drawblack.text((150, 15), value_wHouseConsumption, font = font10, fill = 0) drawblack.text((150, 15), value_wHouseConsumption, font = font10, fill = 0)
@ -172,7 +172,7 @@ try:
drawblack.rectangle((150, 60, 220, 50), fill = 255) drawblack.rectangle((150, 60, 220, 50), fill = 255)
drawblack.text((150, 60), value_houseBatteryLoadUnload, font = font10, fill = 0) drawblack.text((150, 60), value_houseBatteryLoadUnload, font = font10, fill = 0)
epd.DisplayPartial(epd.getbuffer(HBlackimage)) epd.display(epd.getbuffer(HBlackimage))
except KeyboardInterrupt: except KeyboardInterrupt:
print("exiting") print("exiting")