Correct Qconso
This commit is contained in:
		
							parent
							
								
									f9422fd210
								
							
						
					
					
						commit
						25b3a114bf
					
				
							
								
								
									
										2
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.py
									
									
									
									
									
								
							|  | @ -110,7 +110,7 @@ def format_PU_data(data): | ||||||
| def format_DS_data(data): | def format_DS_data(data): | ||||||
|     return { |     return { | ||||||
|         "timestamp": datetime.datetime.now().isoformat(), |         "timestamp": datetime.datetime.now().isoformat(), | ||||||
|         "Qconso": np.round(data.get("Qdrain_sp", 0.0), 1), |         "Qconso": np.round(data.get("Inlet_flow", 0.0), 1) - np.round(data.get("Outlet_flow", 0.0), 1), | ||||||
|         "TankLevel": np.round(data.get("TankLevel", 0.0), 2), |         "TankLevel": np.round(data.get("TankLevel", 0.0), 2), | ||||||
|         "Qinlet": np.round(data.get("Inlet_flow", 0.0), 1), |         "Qinlet": np.round(data.get("Inlet_flow", 0.0), 1), | ||||||
|         "Qoutlet": np.round(data.get("Outlet_flow", 0.0), 1), |         "Qoutlet": np.round(data.get("Outlet_flow", 0.0), 1), | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user