Commit e1c34c3c authored by Cédric Crettaz's avatar Cédric Crettaz 🖥

Update create_entities.py for the data coming from the truck.

parent 2e4e6834
......@@ -101,7 +101,20 @@ attrs = {
'moistureUnit': None,
'refDevice': None,
'refNewDevice': None,
'name': None
'name': None,
'battery': 0.0,
'consumption': 0.0,
'duration': 0.0,
'endDate': datetime.fromtimestamp(0),
'endTick': 0.0,
'idTruck': None,
'initDate': datetime.fromtimestamp(0),
'initTick': 0.0,
'truckLocation': Point([0, 0]),
'version': None,
'feedback': None,
'feedbackDescription': None,
'dateFeedback': datetime.fromtimestamp(0)
},
'WaterQualityObserved': {
'dateObserved': datetime.utcnow(), # mandatory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment