Commit 02dc47e0 authored by Cédric Crettaz's avatar Cédric Crettaz 🖥
Browse files

Correction of a bug in the Carouge DCA.

parent b613173f
......@@ -407,7 +407,7 @@ def _update_fountain_entity(sensor_dataFrame, timestamp):
app.logger.info(base64_string)
# Add the KSI signature
#entity.update({"ksiSignature": base64_string})
#entity.update({"ksiSignature": {"type": "Text", "value": base64_string}})
#url = "{}/v2/entities/{}/attrs".format(URL_BASE, URN_FOUNTAIN_ENTITY)
url = "{}/validation/v2/entities/{}/attrs".format(URL_BASE, URN_FOUNTAIN_ENTITY)
......
......@@ -616,7 +616,7 @@ def _update_flowerbed_entity(soil_moisture, sensor_eui):
app.logger.info(base64_string)
# Add the KSI signature
#body.update({"ksiSignature": base64_string})
#body.update({"ksiSignature": {"type": "Text", "value": base64_string}})
#url = "{}/v2/entities/{}/attrs".format(URL_BASE, flowerbed_id)
url = "{}/validation/v2/entities/{}/attrs".format(URL_BASE_DMV, flowerbed_id)
......@@ -680,7 +680,7 @@ def _update_flowerbed_entity_new(soil_moisture, soil_temperature, conductivity,
app.logger.info(base64_string)
# Add the KSI signature
#body.update({"ksiSignature": base64_string})
#body.update({"ksiSignature": {"type": "Text", "value": base64_string}})
#url = "{}/v2/entities/{}/attrs".format(URL_BASE, flowerbed_id)
url = "{}/validation/v2/entities/{}/attrs".format(URL_BASE_DMV, flowerbed_id)
......@@ -919,7 +919,7 @@ def _rewrite_device_attributes(deveui,
app.logger.info(base64_string)
# Add the KSI signature
#body.update({"ksiSignature": base64_string})
#body.update({"ksiSignature": {"type": "Text", "value": base64_string}})
app.logger.debug('PATCHING data in CTX broker: {}'.format(body))
#url = "{}/v2/entities/{}/attrs".format(URL_BASE, entity_id)
......
......@@ -157,7 +157,7 @@ def update_weather_observed_entity(entity):
logger.info(base64_string)
# Add the KSI signature
#entity.update({"ksiSignature": base64_string})
#entity.update({"ksiSignature": {"type": "Text", "value": base64_string}})
#url = "{}/v2/entities/{}/attrs".format(URL_BASE, URN_WEATHER_ENTITY)
url = "{}/validation/v2/entities/{}/attrs".format(URL_BASE, URN_WEATHER_ENTITY)
......
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