add red black energy import export
This commit is contained in:
parent
a655af4e04
commit
31da7421a2
@ -113,7 +113,11 @@ try:
|
||||
drawred = ImageDraw.Draw(HRedimage)
|
||||
drawblack.text((5, 0), 'PV Produktion', font = font10, fill = 0)
|
||||
drawblack.text((5, 15), 'Hausverbrauch', font = font10, fill = 0)
|
||||
drawblack.text((5, 30), 'Strom Import/Export', font = font10, fill = 0)
|
||||
if value_energyImportExport > 0:
|
||||
drawred.text((5, 30), 'Strom Import', font = font10, fill = 0)
|
||||
else:
|
||||
drawblack.text((5, 30), 'Strom Export', font = font10, fill = 0)
|
||||
|
||||
drawblack.text((5, 45), 'Batterie %', font = font10, fill = 0)
|
||||
drawblack.text((5, 60), 'Batterie Laden/Entladen', font = font10, fill = 0)
|
||||
#epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage))
|
||||
@ -131,6 +135,9 @@ try:
|
||||
#drawblack.rectangle((150, 15, 220, 50), fill = 255)
|
||||
drawblack.text((150, 15), value_wHouseConsumption, font = font10, fill = 0)
|
||||
#drawblack.rectangle((150, 30, 220, 50), fill = 255)
|
||||
if value_energyImportExport > 0:
|
||||
drawred.text((150, 30), value_energyImportExport, font = font10, fill = 0)
|
||||
else:
|
||||
drawblack.text((150, 30), value_energyImportExport, font = font10, fill = 0)
|
||||
#drawblack.rectangle((150, 45, 220, 50), fill = 255)
|
||||
drawblack.text((150, 45), value_houseBatterySoC, font = font10, fill = 0)
|
||||
|
Loading…
Reference in New Issue
Block a user