This question is very similar to Missing Attributes on Orion CB Entity when registering a device through IDAS , but did not find a definitive answer there.
I am trying to get FiWare to get UL2.0 through IDAS to Orion CB running in Fiware-Lab env:
I have a FI-WARE Lab account with a generated token. Adapted config.ini file:
[user]
I used the SENSOR_TEMP template by adding the "protocol" field (PDI-IoTA-UltraLight, which I came across as the first problem):
{ "devices": [ { "device_id": "DEV_ID", "entity_name": "ENTITY_ID", "entity_type": "thing", "protocol": "PDI-IoTA-UltraLight", "timezone": "Europe/Amsterdam", "attributes": [ { "object_id": "otemp", "name": "temperature", "type": "int" } ], "static_attributes": [ { "name": "att_name", "type": "string", "value": "value" } ] } ] }
Now I can register the device in order. how
python RegisterDevice.py SENSOR_TEMP NexusPro Temp-Otterlo
and see it in the device list:
python ListDevices.py
I can send observations as
python SendObservation.py Temp-Otterlo 'otemp|17'
But in ContextBroker, I see an Entity object, but not dimensions, like
python GetEntity.py Temp-Otterlo
gives
* Asking to http://130.206.80.40:1026/ngsi10/queryContext * Headers: {'Fiware-Service': 'bus_auto', 'content-type': 'application/json', 'accept': 'application/json', 'X-Auth-Token': 'NULL'} * Sending PAYLOAD: { "entities": [ { "type": "", "id": "Temp-Otterlo", "isPattern": "false" } ], "attributes": [] } ... * Status Code: 200 * Response: { "contextResponses" : [ { "contextElement" : { "type" : "thing", "isPattern" : "false", "id" : "Temp-Otterlo", "attributes" : [ { "name" : "TimeInstant", "type" : "ISO8601", "value" : "2015-10-03T14:04:44.663133Z" }, { "name" : "att_name", "type" : "string", "value" : "value", "metadatas" : [ { "name" : "TimeInstant", "type" : "ISO8601", "value" : "2015-10-03T14:04:44.663500Z" } ] } ] }, "statusCode" : { "code" : "200", "reasonPhrase" : "OK" } } ] }
I get the TimeInstant attribute is weird. I tried playing with .ini settings like fiware-service = fiwareiot, but to no avail. I have no ideas. Catalog Documentation. for IDAS4, it says that the observations are sent to port 8002 and install the "OpenIoT" service, but this also failed.
Any help appreciated.