fiware-orion

Getting Token in Orion Context Broker

拜拜、爱过 提交于 2019-12-12 06:58:26
问题 I'm trying to get an Authentication Token in order to start querying some information. The problem is that when I execute the Token Script in Linux and I type my name and password, the server doesn't give me the token. I just get an empty space. Does anybody know how to proceed? EDIT : I just type wget --no-check-certificate https://raw.githubusercontent.com/fgalan/oauth2-example-orion-client/master/token_script.sh bash token_script.sh In the Command Window in Ubuntu. The script asks me a

How to find ID for existing Fi-Ware sensors

感情迁移 提交于 2019-12-12 02:07:21
问题 I'm working with Fi-Ware and I would like to include existing information from smartcities on my project. Clicking on the link below I could find information about how is the ID pattern and type of different device (for example OUTSMART.NODE.). https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/Publish/Subscribe_Broker_-_Orion_Context_Broker_-_User_and_Programmers_Guide#Sample_code However, I don't know the after that pattern I've tried random numbers (OUTSMART.NODE.1 or

Fiware: when does the subscription duration count starts?

徘徊边缘 提交于 2019-12-11 13:19:58
问题 Does the duration of the subscription is counted starting from the latest time that the broker sent a notification or from the latest time an entity published its value? If it is counted from the latest time the broker sent a notification, does this mean that the ONTIMEINTERVAL subscription can never expired? Thanks & best regards. 回答1: The duration of the subscription (for NGSIv1 subscriptions) starts in the moment of creating it (or updating duration). As explained in this piece of

Fiware orion subscription with georel expression in condition

谁说胖子不能爱 提交于 2019-12-11 13:18:02
问题 I have an entity in my orion DB: { "id"=>"User-121", "type"=>"User", "location"=>{ "type"=>"geo:point", "value"=>"59.851484, 30.199463" }, "time"=>{"type"=>"none", "value"=>222909, "metadata"=>{}} } Also, I have 3 subscriptions to this entity, which have the same coordinates in condition's expression: Should trigger when the entity is located, at least 100 meters far away from the reference point. { "id"=>"...", "expires"=>"...", "status"=>"active", "subject"=>{ "entities"=>[{"id"=>"User-121"

Fiware-Orion: Access control on a per subscription basis

馋奶兔 提交于 2019-12-11 12:58:32
问题 I would like to know if the following scenario is possible: A Fiware Orion Context Broker instance, to which different data providers connect to publish their data. For each data item (context), the particular data provider should be able to control which application or data consumer is allowed to subscribe to this context. Is this possible with Orion? How can this be done? I've looked into the multitenant model, but I guess that is not the proper way to do this. Am I right? Are there any

how is Orion context data persisted in Cosmos?

大憨熊 提交于 2019-12-11 11:40:33
问题 I've heard about a connector persisting Orion context data in Cosmos in order to create a historical view of such data. What's the name of such connector and where can I find documentation about it? What's the format of the persisted data? Where is the data stored within Cosmos? 回答1: The connector you are asking for is Cygnus, a Flume-based software able to receive notifications from Orion and persist them in Cosmos. You can read a complete description and installation, configuration and

Retrieve Fiware-ServicePath from EntityContext using EntityID

社会主义新天地 提交于 2019-12-11 10:37:20
问题 I could not find detailed documentation about Entity Service and Service Path, this is best i could find is this section in the Orion User Manual I would like to retrieve a "Fiware-ServicePath" for a specific Entity_ID but NGSI10 does not provide that information using queryContext. Is there a way of retrieving this information ? My process is described here, everything is working except the the Get ServicePath using EntityID part: A gateway is pushing data into Orion and i would like to make

How to show an entity from OrionContextBroker in the MapViewer widget

三世轮回 提交于 2019-12-11 10:26:51
问题 I am trying to show an entity stored in my OrionContextBroker instance in the Wirecloud MapViewer widget. I create the context using this JSON POST REST request to miOrionInstance:1026/v1/updateContext like this: { "contextElements": [ { "type": "Room", "isPattern": "false", "id": "Room1", "attributes": [ { "name": "position", "type": "string", "value": "43.47258, -3.8026643" } ] } ], "updateAction": "APPEND" } I am able to recover this information through the NGSIUpdater Widget with no

Getting error “Error loading private server key”

怎甘沉沦 提交于 2019-12-11 09:39:31
问题 So I was implementing rush in Orion Context Broker Server instance, and whenever I try to start the contextBroker with the following command: contextBroker -rush localhost:1234 -https -key privkey.pem -cert cert.csr , I'm getting the following error: E@18:16:11 loadFile[1101]: error opening 'privkey.pem': No such file or directory X@18:16:11 main[1258]: Error loading private server key from 'privkey.pem' I generated my private key with the following command, I don't know if it's correct:

Context Broker Preflight OPTIONS request

人盡茶涼 提交于 2019-12-11 07:31:09
问题 I'm trying to make a GET request to a Context Broker instance from a browser. I've enabled CORS on the CB using the -corsOrigin __ALL flag when starting the app, and I can see that this has worked by making a request in POSTMAN and seeing this header in the response: access-control-allow-origin →* . I need to specify the Fiware-Service header in my GET request in order to get the correct entities, which I believe is making the request not simple, triggering an OPTIONS HTTP request. Inspecting