我試圖顯示存儲在我的OrionContextBroker例如在Wirecloud MapViewer的小部件的實體。我創建一個使用此JSON POST REST請求上下文miOrionInstance:1026/V1/updateContext這樣的:如何顯示從OrionContextBroker實體在MapViewer的小部件
{
"contextElements": [
{
"type": "Room",
"isPattern": "false",
"id": "Room1",
"attributes": [
{
"name": "position",
"type": "string",
"value": "43.47258, -3.8026643"
}
]
}
],
"updateAction": "APPEND"
}
我能夠通過NGSIUpdater的Widget沒有問題,以恢復該信息,但我無法在MapViewer小部件中顯示此實體。我試圖將NGSISource操作員連接到NGSIEntityToPol操作員,最後連接到MapViewer窗口小部件(在Insert/Update居中Pol中)。 的NGSISource操作的配置是:
NGSI server URL: http://miOrionInstanceIP:1026
NGSI proxy URL: http://ngsiproxy.lab.fi-ware.org
NGSI entity types: Room
Id Pattern:
Monitored NGSI Attribures: position
而且NGSIEntityToPol操作的配置如下:
Coordinates attribute: position
但沒有出現在地圖上。
感謝,
試圖改變「NGSI實體類型」爲「室」 – 2014-11-25 10:03:57
澄清,在「NGSI實體類型」設置應指向實體類型,也給實體ID ;-)。 – 2014-11-25 16:36:27
@ÁlvaroArranzthnxs的快速幫助,但仍然沒有工作:「(我已經改變了‘NGSI實體類型’到房間,我說的http://到‘NGSI服務器URL’選項,我改變了代理到http: //ngsiproxy.lab.fi-ware.org – 2014-11-27 16:23:05