Commit 171a4570 authored by Federico Sismondi's avatar Federico Sismondi

Updated FountainUsageObserved data model, added entity creation (skeletons)...

Updated FountainUsageObserved data model, added entity creation (skeletons) for Device entities used in Alicante
parent 0f7c83ff
......@@ -114,8 +114,14 @@ attrs = {
"FountainUsageObserved": {
'dateObserved': datetime.utcnow(), # mandatory
'location': Point([0, 0]), # mandatory
'peopleInFountain': 0,
'petsInFountain': 0,
"observations": "",
"temperature": 0,
"temperatureWater": 0,
"chlorineContent": 0,
"phWater": 0,
"waterRecycle": 0,
"swimmers": 0,
"animals": 0,
},
"WaterQualityForecast": {
'validFrom': datetime.fromtimestamp(0), # mandatory
......@@ -142,11 +148,14 @@ attrs = {
"rssi": 0,
"serialNumber": "",
"source": "",
"value": [],
"value": 0,
#"value": [], # braila uses Array instead of Number
},
}
# entities ids per pilot tuples
# attention this will overwrite existing ones!
# if you need to create just a couple of these, please comment the lines of the entities you dont want to touch
entities = [
# weather prediction use case - weather observed (current)
('urn:ngsi-ld:WeatherObserved:WeatherObserved', ['carouge', 'braila', 'wtp_lab']),
......@@ -202,6 +211,23 @@ entities = [
('urn:ngsi-ld:Device:Device-5980', ['braila']),
('urn:ngsi-ld:Device:Device-5981', ['braila']),
('urn:ngsi-ld:Device:Device-5982', ['braila']),
# Alicante water consumption use cases
('urn:ngsi-ld:Device:Benalua-Volume', ['alicante']),
('urn:ngsi-ld:Device:Benalua-Flow', ['alicante']),
('urn:ngsi-ld:Device:Autobuses-Volume', ['alicante']),
('urn:ngsi-ld:Device:Autobuses-Flow', ['alicante']),
('urn:ngsi-ld:Device:Diputacion-Volume', ['alicante']),
('urn:ngsi-ld:Device:Diputacion-Flow', ['alicante']),
('urn:ngsi-ld:Device:Mercado-Volume', ['alicante']),
('urn:ngsi-ld:Device:Mercado-Flow', ['alicante']),
('urn:ngsi-ld:Device:Alipark-Volume', ['alicante']),
('urn:ngsi-ld:Device:Alipark-Flow', ['alicante']),
('urn:ngsi-ld:Device:Montaneta-Volume', ['alicante']),
('urn:ngsi-ld:Device:Montaneta-Flow', ['alicante']),
('urn:ngsi-ld:Device:Rambla-Volume', ['alicante']),
('urn:ngsi-ld:Device:Rambla-Flow', ['alicante']),
]
# http headers
......
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