我们正在尝试将Orion,Cygnus和Ckan整合在一起。 我已按照以下步骤进行操作:
queryUpdate = APPEND数据
{
"contextElements": [{
"type": "Room",
"isPattern": "false",
"id": "26JanRoom",
"attributes": [{
"name": "temperature",
"type": "float",
"value": "888"
}]
}],
"updateAction": "APPEND"
}
subscribeContext =订阅上面创建的实体ID(我们的Cygnus主机作为参考"参考":" CYGNUS HOST")
{
"entities": [{
"type": "Room",
"isPattern": "false",
"id": "26JanRoom"
}],
"attributes": ["temperature"],
"reference": "CYGNUS HOST",
"duration": "P1M",
"notifyConditions": [{
"type": "ONCHANGE",
"condValues": ["temperature"]
}],
"throttling": "PT5S"
}
queryUpdate =更新数据
{
"contextElements": [{
"type": "Room",
"isPattern": "false",
"id": "26JanRoom",
"attributes": [{
"name": "temperature",
"type": "float",
"value": "111"
}]
}],
"updateAction": "UPDATE"
}
我们期望在天鹅座方面接收一些通知,但是猎户座没有发送任何通知(orion.lab.fi-ware.org:1026 /)
您可以帮助我们解决这个问题吗?
谢谢kr
Omer Ozdemir
答案 0 :(得分:0)
您正在使用
"condValues": ["pressure"]
这意味着每次名为pressure
的属性发生变化时,Orion都会触发通知。但是,您的更新是修改temperature
。
请在Orion文档中查看the subscribe context operation section。