我正在尝试使用orion context-broker在超高面板中显示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服务器正在侦听,但我无法从freeboard仪表板数据源配置中访问类型为"Sala“的实体:
FIWARE数据集配置

失败,返回404 -找不到上下文元素。我可以使用这个文本小部件来查看它:

查看JS代码。我看到它在变量cbhost后面添加了一个"/NGSI10/contextElement“路径...
...
url = "http://"+currentSettings.cbhost+"/NGSI10/queryContext";
...我在REST客户端上尝试使用此路径进行查询,但无法正常工作。我必须重新配置我的orion服务器吗?
我只是不知道该怎么做..
有什么想法吗?
提前谢谢。
--丹尼尔
发布于 2016-03-18 01:32:48
当Orion在单租户模式(即未启用-multiservice )下运行时,这是一个已知问题。请在FreeBoard上使用以下配置:
但是,您可以克隆以下电路板,该电路板已配置为以这种方式使用Orion:
https://freeboard.io/board/q7Oe0e
(附注: XML在Orion中已被弃用,实际上,下一个Orion版本1.0.0将不支持它。我建议停止使用它,转而使用JSON)。
https://stackoverflow.com/questions/36011913
复制相似问题