猎户座通知天鹅座
Orion notification to cygnus
我遵循了关于实体 creation/update 和 Orion 订阅的官方指南,他们正在工作,我得到了成功的回应。但是 Orion 不会向 Cygnus 发送通知。
我是不是漏掉了一些步骤?
这些是我使用的基本脚本:
创建实体
{
"contextElements": [{
"type": "Room",
"isPattern": "false",
"id": "2FebRoom",
"attributes": [{
"name": "temperature",
"type": "float",
"value": "888"
}]
}],
"updateAction": "APPEND"
}
订阅实体http://orion.lab.fiware.org:1026/v1/subscribeContext
{
"entities": [
{
"type": "Room",
"isPattern": "false",
"id": "2FebRoom"
}
],
"attributes": [
"temperature"
],
"reference": "http://A.B.C.D:5050/notify",
"duration": "P1M",
"notifyConditions": [
{
"type": "ONCHANGE",
"condValues": [
"temperature"
]
}
],
"throttling": "PT5S"
}
更新实体
{
"contextElements": [
{
"type": "Room",
"isPattern": "false",
"id": "2FebRoom",
"attributes": [
{
"name": "temperature",
"type": "float",
"value": "111"
}
]
}
],
"updateAction": "UPDATE"
}
我可以在更新操作后在 Orion 中查询新值,但 Cygnus 没有收到任何通知,会是什么问题?
非常感谢
问题是由来自 orion.lab.fiware.org 的传出通知暂时中断引起的。问题已解决
我遵循了关于实体 creation/update 和 Orion 订阅的官方指南,他们正在工作,我得到了成功的回应。但是 Orion 不会向 Cygnus 发送通知。
我是不是漏掉了一些步骤?
这些是我使用的基本脚本:
创建实体
{
"contextElements": [{
"type": "Room",
"isPattern": "false",
"id": "2FebRoom",
"attributes": [{
"name": "temperature",
"type": "float",
"value": "888"
}]
}],
"updateAction": "APPEND"
}
订阅实体http://orion.lab.fiware.org:1026/v1/subscribeContext
{
"entities": [
{
"type": "Room",
"isPattern": "false",
"id": "2FebRoom"
}
],
"attributes": [
"temperature"
],
"reference": "http://A.B.C.D:5050/notify",
"duration": "P1M",
"notifyConditions": [
{
"type": "ONCHANGE",
"condValues": [
"temperature"
]
}
],
"throttling": "PT5S"
}
更新实体
{
"contextElements": [
{
"type": "Room",
"isPattern": "false",
"id": "2FebRoom",
"attributes": [
{
"name": "temperature",
"type": "float",
"value": "111"
}
]
}
],
"updateAction": "UPDATE"
}
我可以在更新操作后在 Orion 中查询新值,但 Cygnus 没有收到任何通知,会是什么问题?
非常感谢
问题是由来自 orion.lab.fiware.org 的传出通知暂时中断引起的。问题已解决