首页 文章

fiware-orion干舷数据源配置失败

提问于
浏览
1

我正试图使用猎户座上下文代理在干舷中显示DHT11传感器(温度和湿度) . 该实体有这方面:

<contextElement>
<entityId type="Sala" isPattern="false">
<id>Sala1</id>
</entityId>
<contextAttributeList>
<contextAttribute>
<name>date</name>
<type>string</type>
<contextValue>2016-03-15 11:14:22</contextValue>
</contextAttribute>
<contextAttribute>
<name>humidity</name>
<type>float</type>
<contextValue>35</contextValue>
</contextAttribute>
<contextAttribute>
<name>temperature</name>
<type>float</type>
<contextValue>19</contextValue>
</contextAttribute>
</contextAttributeList>
</contextElement>

ORION SERVER正在监听,但我无法从干舷仪表板数据源配置到达“Sala”类型的实体:

FIWARE数据集配置

enter image description here

它失败了404 - 没有找到上下文元素 . 我可以使用这个文本小部件看到它:

enter image description here

查看JS代码 . 我看到它在变量cbhost之后添加了一个“/ NGSI10 / contextElement”路径...

...
url = "http://"+currentSettings.cbhost+"/NGSI10/queryContext";
...

我尝试使用此路径与REST客户端进行查询,但无法使其工作 . 我是否必须重新配置我的猎户服务器?

我只是不知道如何使它工作..

有任何想法吗?

提前致谢 .

--Daniel

1 回答

  • 0

    当Orion以单租户模式运行时(即没有启用 -multiservice ),这是一个已知问题 . 请在FreeBoard上使用以下配置:

    • Fiware-Service:' '(即空白)

    • Fiware-ServicePath:'/'

    但是,您可以克隆以下板,已配置为以这种方式与您的Orion一起使用:

    https://freeboard.io/board/q7Oe0e

    (旁注:在Orion中不推荐使用XML,事实上,下一个Orion版本-1.0.0-将不支持它 . 我建议停止使用它,支持JSON) .

相关问题