首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >fiware-orion freeboard数据源配置失败

fiware-orion freeboard数据源配置失败
EN

Stack Overflow用户
提问于 2016-03-15 20:53:33
回答 1查看 261关注 0票数 1

我正在尝试使用orion context-broker在超高面板中显示DHT11传感器(温度和湿度)。实体具有以下方面:

代码语言:javascript
复制
<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“路径...

代码语言:javascript
复制
...
url = "http://"+currentSettings.cbhost+"/NGSI10/queryContext";
...

我在REST客户端上尝试使用此路径进行查询,但无法正常工作。我必须重新配置我的orion服务器吗?

我只是不知道该怎么做..

有什么想法吗?

提前谢谢。

--丹尼尔

EN

回答 1

Stack Overflow用户

发布于 2016-03-18 01:32:48

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

  • Fiware-Service:‘’(即whitespace)
  • Fiware-ServicePath:'/'

但是,您可以克隆以下电路板,该电路板已配置为以这种方式使用Orion:

https://freeboard.io/board/q7Oe0e

(附注: XML在Orion中已被弃用,实际上,下一个Orion版本1.0.0将不支持它。我建议停止使用它,转而使用JSON)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36011913

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档