猎户座 - 天鹅座整合

时间:2016-01-29 09:26:58

标签: fiware-orion fiware-cygnus

我们正在尝试将Orion,Cygnus和Ckan整合在一起。 我已按照以下步骤进行操作:

  1. 使用Fiware Ckan信息安装和配置Cygnus(Cygnus启动并运行)
  2. 登录Ckan并获取API密钥并在Cygnus设置中进行配置
  3. 猎户座步骤:
  4. 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

1 个答案:

答案 0 :(得分:0)

您正在使用

"condValues": ["pressure"]

这意味着每次名为pressure的属性发生变化时,Orion都会触发通知。但是,您的更新是修改temperature

请在Orion文档中查看the subscribe context operation section