negative to positive
This commit is contained in:
parent
30f7f12dde
commit
66ef3f424f
@ -65,6 +65,7 @@ def on_message(client, userdata, msg):
|
||||
|
||||
if msg.topic == "openWB/pv/W":
|
||||
value_pvProduction = int(msg.payload.decode())
|
||||
value_pvProduction = -value_pvProduction
|
||||
elif msg.topic == "openWB/global/WHouseConsumption":
|
||||
value_wHouseConsumption = int(msg.payload.decode())
|
||||
elif msg.topic == "openWB/evu/W":
|
||||
@ -125,7 +126,7 @@ try:
|
||||
drawred.text((5, 60), 'Batterie Entladen', font = font10, fill = 0)
|
||||
|
||||
logging.info("-----")
|
||||
logging.info("PvPord: "+str(-value_pvProduction))
|
||||
logging.info("PvProd: "+str(value_pvProduction))
|
||||
logging.info("HouseU: "+str(value_wHouseConsumption))
|
||||
logging.info("EneI/E: "+str(value_energyImportExport))
|
||||
logging.info("BatSoC: "+str(value_houseBatterySoC))
|
||||
|
Loading…
Reference in New Issue
Block a user