Fiware 从未收到更改的Orion订阅

Fiware 从未收到更改的Orion订阅,fiware,fiware-orion,Fiware,Fiware Orion,我在订阅时遇到一些实体问题。子描述做得很好(orion响应ok。状态201),但订阅的url从未收到任何更新 我和docker在一个多世纪前发射了fiware orion 这是实体的一个示例 { "id": "urn:ngsi-ld:ParkingGroup:Cervantes", "type": "ParkingGroup", "allowedVehicleType": { "type": "Property",

我在订阅时遇到一些实体问题。子描述做得很好(orion响应ok。状态201),但订阅的url从未收到任何更新

我和docker在一个多世纪前发射了fiware orion

这是实体的一个示例

{
        "id": "urn:ngsi-ld:ParkingGroup:Cervantes",
        "type": "ParkingGroup",
        "allowedVehicleType": {
            "type": "Property",
            "value": "car",
            "metadata": {}
        },
        "availableSpotNumber": {
            "type": "Property",
            "value": 59,
            "metadata": {}
        },
        "category": {
            "type": "Property",
            "value": [
                "offstreet",
                "feeCharged"
            ],
            "metadata": {}
        },
        "chargeType": {
            "type": "Property",
            "value": [
                "temporatyPrice"
            ],
            "metadata": {}
        },
        "description": {
            "type": "Property",
            "value": "Calle CervantesMálaga",
            "metadata": {}
        },
        "location": {
            "type": "GeoProperty",
            "value": {
                "type": "Point",
                "coordinates": [
                    "-4.4119148",
                    "36.7208633"
                ]
            },
            "metadata": {}
        },
        "name": {
            "type": "Text",
            "value": "Cervantes",
            "metadata": {}
        },
        "occupancyDetectionType": {
            "type": "Property",
            "value": "none",
            "metadata": {}
        },
        "permitActiveHours": {
            "type": "Property",
            "value": "",
            "metadata": {}
        },
        "requiredPermit": {
            "type": "Property",
            "value": "noPermitNeeded",
            "metadata": {}
        },
        "totalSpotNumber": {
            "type": "Property",
            "value": "414",
            "metadata": {}
        }
    }
我尝试了不同的订阅方式,所有订阅方式都被orion接受,如下所示:

{
  "description": "Notificar cambios en Aparcamientos",
  "subject": {
    "entities": [
      {
        "idPattern": ".*",
        "type":"ParkingGroup"

      }
    ],
     "condition": {
      "attrs": [
        "availableSpotNumber"
      ]
    }
  },
  "notification": {
    "attrs" : ["availableSpotNumber"],
    "http": {
      "url": "https://webhook.site/925f3290-07af-4dc9-88d2-27bcba693be5"
    }

  }
}
当我在模式下通过邮递员更新数据时:

http://{{orion}}/v2/entities/urn:ngsi-ld:ParkingGroup:Cervantes/attrs/availableSpotNumber/value

和值为2的正文(文本/普通)

当我在邮递员模式下获取时,数据非常及时: http://{{orion}}/v2/entities/urn:ngsi-ld:ParkingGroup:Cervantes/attrs/availableSpotNumber

它返回:

{
    "type": "Property",
    "value": 2,
    "metadata": {}
}

但订阅的url从未收到任何内容

怎么了? 我怎样才能解决它?我如何调试Orion来理解它为什么不更新订阅服务器

这个想法是稍后订阅《天鹅座》。我已阅读,我必须以以下方式为其添加属性格式:

"notification": {
    "http": {
      "url": "https://webhook.site/925f3290-07af-4dc9-88d2-27bcba693be5"
    },
    "attrs" : ["availableSpotNumber"],
    "attrsFormat": "legacy"
  }

提前感谢

已解决。经过两天的问题斗争和一些实体的工作,我意识到当我订阅时,邮递员添加了标题(因为教程): -fiware服务openiot -fiware服务路径/

现在它工作得很好


感谢杰森·福克斯,他一直在帮助我

注意如何对位置进行编码。在NGSIV2中,您需要键入geo:json,坐标必须是数字而不是字符串。在Ngsi ld中,您需要GeoProperty,但示例实体编码为ngsiv2

我也尝试在引号“2”之间提交值,但结果相同(无)