1
votes

We are trying to integrate Orion, Cygnus and Ckan together. I have followed these steps in order to make this happen:

  1. Install and configure Cygnus with the Fiware Ckan info(Cygnus up and running)
  2. Login in Ckan and get the API key and configure this in the Cygnus settings
  3. Orion steps:

queryUpdate = APPEND data

{
"contextElements": [{
    "type": "Room",
    "isPattern": "false",
    "id": "26JanRoom",
    "attributes": [{
        "name": "temperature",
        "type": "float",
        "value": "888"
    }]
}],
"updateAction": "APPEND"
}

subscribeContext = subscribe with the entity id created above(our Cygnus host is given as reference "reference": "CYGNUS HOST", )

{
"entities": [{
    "type": "Room",
    "isPattern": "false",
    "id": "26JanRoom"
}],
"attributes": ["temperature"],
"reference": "CYGNUS HOST",
"duration": "P1M",
"notifyConditions": [{
    "type": "ONCHANGE",
    "condValues": ["temperature"]
}],
"throttling": "PT5S"
}

queryUpdate = UPDATE data

{
"contextElements": [{
    "type": "Room",
    "isPattern": "false",
    "id": "26JanRoom",
    "attributes": [{
        "name": "temperature",
        "type": "float",
        "value": "111"
    }]
}],
"updateAction": "UPDATE"
}

What we expect is to receive some notifications in the Cygnus side, but there is nothing sent from the Orion (orion.lab.fi-ware.org:1026/)

Could you please help us on this topic?

Thanks kr

Omer Ozdemir

1

1 Answers

0
votes

Your are using

"condValues": ["pressure"]

which means that every time the attribute named pressure change, Orion will trigger a notification. However, your update is modifiygin temperature.

Please, have a look to the subscribe context operation section at Orion documentation.