add "W"
This commit is contained in:
parent
b622d418b9
commit
e9420a4d76
@ -118,7 +118,7 @@ try:
|
|||||||
else:
|
else:
|
||||||
drawblack.text((5, 30), 'Strom Export', font = font10, fill = 0)
|
drawblack.text((5, 30), 'Strom Export', font = font10, fill = 0)
|
||||||
|
|
||||||
drawblack.text((5, 45), 'Batterie %', font = font10, fill = 0)
|
drawblack.text((5, 45), 'Batterie', font = font10, fill = 0)
|
||||||
if value_houseBatteryLoadUnload > 0:
|
if value_houseBatteryLoadUnload > 0:
|
||||||
drawblack.text((5, 30), 'Batterie Laden', font = font10, fill = 0)
|
drawblack.text((5, 30), 'Batterie Laden', font = font10, fill = 0)
|
||||||
else:
|
else:
|
||||||
@ -134,23 +134,22 @@ try:
|
|||||||
logging.info("SoC: "+str(value_houseBatterySoC))
|
logging.info("SoC: "+str(value_houseBatterySoC))
|
||||||
logging.info("Bio: "+str(value_houseBatteryLoadUnload))
|
logging.info("Bio: "+str(value_houseBatteryLoadUnload))
|
||||||
#drawblack.rectangle((150, 0, 220, 50), fill = 255)
|
#drawblack.rectangle((150, 0, 220, 50), fill = 255)
|
||||||
drawblack.text((150, 0), str(value_pvProduction), font = font10, fill = 0)
|
drawblack.text((150, 0), str(value_pvProduction) + " W", font = font10, fill = 0)
|
||||||
#drawblack.rectangle((150, 15, 220, 50), fill = 255)
|
#drawblack.rectangle((150, 15, 220, 50), fill = 255)
|
||||||
drawblack.text((150, 15), str(value_wHouseConsumption), font = font10, fill = 0)
|
drawblack.text((150, 15), str(value_wHouseConsumption) + " W", font = font10, fill = 0)
|
||||||
#drawblack.rectangle((150, 30, 220, 50), fill = 255)
|
#drawblack.rectangle((150, 30, 220, 50), fill = 255)
|
||||||
if value_energyImportExport > 0:
|
if value_energyImportExport > 0:
|
||||||
drawred.text((150, 30), str(value_energyImportExport) + " W", font = font10, fill = 0)
|
drawred.text((150, 30), str(value_energyImportExport) + " W", font = font10, fill = 0)
|
||||||
else:
|
else:
|
||||||
drawblack.text((150, 30), str(value_energyImportExport) + " W", font = font10, fill = 0)
|
drawblack.text((150, 30), str(value_energyImportExport) + " W", font = font10, fill = 0)
|
||||||
#drawblack.rectangle((150, 45, 220, 50), fill = 255)
|
#drawblack.rectangle((150, 45, 220, 50), fill = 255)
|
||||||
drawblack.text((150, 45), str(value_houseBatterySoC), font = font10, fill = 0)
|
drawblack.text((150, 45), str(value_houseBatterySoC) + " %", font = font10, fill = 0)
|
||||||
#drawblack.rectangle((150, 60, 220, 50), fill = 255)
|
#drawblack.rectangle((150, 60, 220, 50), fill = 255)
|
||||||
if value_houseBatteryLoadUnload > 0:
|
if value_houseBatteryLoadUnload > 0:
|
||||||
drawblack.text((150, 60), str(value_houseBatteryLoadUnload) + " W", font = font10, fill = 0)
|
drawblack.text((150, 60), str(value_houseBatteryLoadUnload) + " W", font = font10, fill = 0)
|
||||||
else:
|
else:
|
||||||
drawred.text((150, 60), str(value_houseBatteryLoadUnload) + " W", font = font10, fill = 0)
|
drawred.text((150, 60), str(value_houseBatteryLoadUnload) + " W", font = font10, fill = 0)
|
||||||
|
|
||||||
|
|
||||||
epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage))
|
epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRedimage))
|
||||||
|
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
Loading…
Reference in New Issue
Block a user