fiware-orion

Rush installation and integration with Orion Context Broker

随声附和 提交于 2019-12-02 04:18:44
After having running the listener and one time a consumer in the Rush, I run: contextBroker -rush localhost:5001 I made sure to use Orion 0.17 instead of 0.14 and what It's shown after enter to the /version url is: <orion> <version>0.17.0</version> <uptime>0 d, 0 h, 12 m, 14 s</uptime> <git_hash>127793ff921b37a6a570cd315ddce9a3ec541ccf</git_hash> <compile_time>Fri Nov 28 09:41:22 CET 2014</compile_time> <compiled_by>fermin</compiled_by> <compiled_in>centollo</compiled_in> </orion> Now Rush relayer works fine, what it's shown in the terminal is : [root@fiware ngsi-proxy]# contextBroker -rush

Orion Context Broker works half of the times

本秂侑毒 提交于 2019-12-02 03:05:16
I've installed Orion Context Broker 0.23.0 and it behaves rare: it only works half of the times. For instance, when trying to retrieve the version I get this error message: $ curl "http://localhost:1026/version" curl: (52) Empty reply from server $ curl "http://localhost:1026/version" <orion> <version>0.23.0</version> <uptime>15 d, 22 h, 13 m, 18 s</uptime> <git_hash>f5d76a6f11736d52402e63a4aa0ba990bff7f5eb</git_hash> <compile_time>Fri Jul 10 13:21:42 CEST 2015</compile_time> <compiled_by>fermin</compiled_by> <compiled_in>centollo</compiled_in> </orion> $ curl "http://localhost:1026/version"

Fiware error: Access-Control-Allow-Origin

与世无争的帅哥 提交于 2019-12-02 02:19:51
I'm making a call to the contextBroker and it gives me this error. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access. The response had HTTP status code 405. From postman or from freeboard I do not get any of this. getContextBroker(){ console.log("Consumimos el servicio getContextBroker"); let headers = new Headers ({'Accept': 'application/json', 'Fiware-Service': 'x', 'Fiware-ServicePath': '/x', 'Access-Control-Allow-Origin': '*'}); let

Orion Context Broker HTTPS for subscribers

喜夏-厌秋 提交于 2019-12-02 02:13:48
Very simply question: Does the Orion Context Broker support SSL for subscribers: Ex.: Can the callback URL for subscriptions be https://mysimpleexample.com/notify I've tried this (using a trusted certificate!), and this does not seem to work for me. That being said, I've not run the Orion Context Broker using the -https option. However, looking at the manual, this option seems to be for using SSL on the context broker http server, and have nothing to do with client subscriptions. Edit: I did try this on an http endpoint and then on an https endpoint with the same hostname afterwards. Only the

Fiware - Context broker: Issue with NGSIv2 subscriptions

亡梦爱人 提交于 2019-12-02 02:02:13
I'm working with an Orion context broker version 1.2.0. I have subscribed in it two different cygnus (0.11 and 0.13) using NGSIv2, as follows: (curl 172.21.0.23:1026/v2/subscriptions -s -S --header 'Fiware-Service: prueba_015_adapter' --header 'Fiware-ServicePath: /Prueba/Planta_3' --header 'Content-Type: application/json' -d @- ) <<EOF { "description": "Cygnus subscription", "subject": { "entities": [ { "idPattern": ".*", "type": "density_algorithm" } ], "condition": { "attrs": [] } }, "notification": { "http": { "url": "http://172.21.0.33:5050/notify" }, "attrs": [] } } EOF But when the

No connection between Freeboard's data source for Orion and Context Broker

非 Y 不嫁゛ 提交于 2019-12-02 00:39:56
I've been trying to connect Freeboard to visualize context information from OCB, however came across difficulties that prevent me from receiving any data from there. My thinking is that there is a problem with connecting Freeboard to OCB, because in OCB's subscription list there are no any new entries, and datasource in Freeboard shows that it has never been updated. OCB is turned on as a docker container. Freeboards run in docker host. I tried setting the ip as ip that I extracted from docker by: sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' orion1 It gave me 172.17.0.3, but

Subscription to CB working but not visible

↘锁芯ラ 提交于 2019-12-01 22:59:29
问题 I have an entity represented on the Context Broker with severall attributes (such as temperature, humidity etc...). I have a MySql database that persists the values from that entity by row . So in order to persist that info i have to make a subscription from cygnus. The problem here is that the information is being presisted but when i run the command (curl http://localhost:1026/v2/subscription) i get the output: [] as if any subscription was being made. If i do the command echo 'db.csubs

Cygnus not presisting data on MySql database

∥☆過路亽.° 提交于 2019-12-01 22:47:53
So i have read all the documentation and followed the tutorial on MySQL persistence but i can't still presist any kind of data on MySQL database. Even though i'm puting the presistence mode = row it doesn't create any database nor table. What am i doing wrong? My Subscription: python2.7 SetSubscription.py bustest4 http://localhost:5050/notify Output: * Asking to http://localhost:1026/v1/subscribeContext * Headers: {'Fiware-Service': 'fiwaretestapi', 'content-type': 'application/json ', 'accept': 'application/json', 'X-Auth-Token': 'NULL'} * Sending PAYLOAD: { "reference": "http://localhost

Cygnus can not persist data on Cosmos global instance

删除回忆录丶 提交于 2019-12-01 21:47:02
When trying to persist an entity from Cygnus to Cosmos global instance it fails. Looking at the log file I see something like that: 2015 15:31:50,006 DEBUG [SinkRunner-PollingRunner-DefaultSinkProcessor] (org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader:273) - >> GET /webhdfs/v1/user/ms/def_serv/def_servpath/6_registervalues/6_registervalues.txt?op=getfilestatus&user.name=ms HTTP/1.1 12 Nov 2015 15:31:50,006 DEBUG [SinkRunner-PollingRunner-DefaultSinkProcessor] (org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader:276) - >> X-Auth-Token: xxxxxxxxxxxxxxxxxxx 12

Subscription to CB working but not visible

心已入冬 提交于 2019-12-01 20:52:43
I have an entity represented on the Context Broker with severall attributes (such as temperature, humidity etc...). I have a MySql database that persists the values from that entity by row . So in order to persist that info i have to make a subscription from cygnus. The problem here is that the information is being presisted but when i run the command (curl http://localhost:1026/v2/subscription) i get the output: [] as if any subscription was being made. If i do the command echo 'db.csubs.count()' | mongo orion --quiet it even shows the output 0. Running OS: Centos 6 My Orion Context Broker