2016-03-15 65 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)。