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 SERVER はリッスンしていますが、フリーボード ダッシュボードのデータソース構成から「Sala」タイプのエンティティに到達できません。
FIWARE データセット構成
404 - No context element found で失敗します。このテキスト ウィジェットを使用して表示できます。
JSコードを調べています。変数 cbhost の後に「/NGSI10/contextElement」パスが追加されているのがわかります...
...
url = "http://"+currentSettings.cbhost+"/NGSI10/queryContext";
...
このパスを使用して REST クライアントでクエリを実行しようとしましたが、うまくいきませんでした。orion サーバーを再構成する必要がありますか?
私はそれを機能させる方法がわかりません..
何か案は?
前もって感謝します。
――ダニエル