Compare commits

..

No commits in common. "350125b659a8473cd41c81afd9ec8ffe12f73637" and "f9422fd210e70f0937aa6310f46f826847810d5f" have entirely different histories.

View File

@ -108,10 +108,9 @@ def format_PU_data(data):
}
def format_DS_data(data):
q_conso = max(np.round(data.get("Inlet_flow", 0.0), 1) - np.round(data.get("Outlet_flow", 0.0), 1),0)
return {
"timestamp": datetime.datetime.now().isoformat(),
"Qconso": q_conso ,
"Qconso": np.round(data.get("Qdrain_sp", 0.0), 1),
"TankLevel": np.round(data.get("TankLevel", 0.0), 2),
"Qinlet": np.round(data.get("Inlet_flow", 0.0), 1),
"Qoutlet": np.round(data.get("Outlet_flow", 0.0), 1),