2016-03-15 112 views
1

我试图在干舷使用orion上下文代理中显示DHT11传感器(temp &潮湿)。实体有这方面的:fiware-orion freeboard数据源配置失败

<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服务器监听,但我可不是能从干舷仪表板数据源配置达到同类型的“萨拉”的实体:

FIWARE数据集配置

enter image description here

它以404失败 - 找不到任何上下文元素。我可以使用这个文本组件看到:

enter image description here

展望JS代码。我看到它的变量cbhost后加“/ NGSI10/contextElement”路径...

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

我尝试使用此路径与REST客户端的查询,不能使它发挥作用。我必须重新配置我的猎户服务器吗?

我鸵鸟政策知道如何使它工作..

任何想法?

在此先感谢。

--Daniel

回答

0

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

  • Fiware-服务:'(即一个空格)
  • Fiware-ServicePath: '/'

但是,您可以复制以下的局,已配置在该方式与您猎户座的工作:

https://freeboard.io/board/q7Oe0e

(边注:XML已被弃用的猎户座,事实上,接下来的猎户座版本-1.0.0-不会支持它。我建议停止使用它,支持JSON)。