node-red - FIWARE Orion 订阅 Node Red 插件
问题描述
我正在尝试使用 Orion Context Broker 和 Node-Red 插件创建订阅。我想创建自定义节点红色插件以适合我的用例。是否有任何用于订阅的示例 Node-Red 插件开发存储库?我必须使用 ngsi-proxy 还是直接从 Orion 获取结果?
我的订阅条款如下所示:
"description": "Notify Node Red on Sensor count attribute changes",
"subject": {
"entities": [
{
"idPattern": "urn:ngsi-ld:MySensor:001"
}
],
"condition": {
"attrs": [
"count"
]
}
},
"notification": {
"http": {
"url": "http://node-red:1880"
},
"attrs": [
"count"
],
"metadata": ["dateCreated", "dateModified"]
}
}
解决方案
似乎有一些与 NGSIv2 相关的 Node Red 的东西。你可以看看https://flows.nodered.org/node/node-red-contrib-fiware_official
推荐阅读
- reactjs - 反应:从另一个组件调用 setState
- spring - Spring AOP:仅从另一个方法调用的捕获方法
- angularjs - 使用 angularjs 在 MVC .net 应用程序中维护会话
- c# - 从.net core 2.1中的单例服务注入范围服务
- javascript - 我可以让一个属性在 vue v-for 中只出现一次吗
- spring-boot - 如何在 Docker 容器中提供 libgthread-2.0.so.0
- python - Pandas:稀疏数据框到没有 nan 值的字典
- wordpress - 导入产品数据不显示元值
- python - ModuleNotFoundError:没有名为“xyz”的模块;'xyz' 不是一个包
- yocto - do_compile: oe_runmake failed and do_compile: Function failed: do_compile error while build yocto project