fiware-orion

How to store an image from context broker?

ぐ巨炮叔叔 提交于 2019-12-31 03:19:12
问题 I want to send images from various android to context broker, I am not sure how I would go about decoding the image from string format and then storing it to the file system and database respectively. Would I have to develop my own python script or could Cygnus help me out here? 回答1: Although there are several approaches to transcode a binary file (such an image) into text (e.g. Base64) it doesn't use to be a good idea in Orion Context Broker. Big static files are better placed in an Object

Fiware Orion context broker subscriptions condition does not work

风格不统一 提交于 2019-12-30 11:13:30
问题 I am using Orion Context Broker version 1.1.0 I had the only entity in my DB: { "id"=>"Room1", "type"=>"Room", "temperature"=>{"type"=>"none", "value"=>10, "metadata"=>{}} } I did not have any subscription . Then I created 3 subscriptions : [ { "subject"=>{"entities"=>[{"id"=>"Room1", "idPattern"=>"", "type"=>""}], "condition"=>{"attrs"=>["temperature"], "expression"=>{"q"=>"temperature>10"}}} }, { "subject"=>{"entities"=>[{"id"=>"Room1", "idPattern"=>"", "type"=>""}], "condition"=>{"attrs"=>

Fiware - How to integrate Keyrock IdM, Wilma PEP Proxy and Orion Context Broker?

ⅰ亾dé卋堺 提交于 2019-12-29 01:53:30
问题 I read all the documentation of Keyrock and Wilma and I watched all the videos in the FIWARE Academy, but I still do not get success in this integration. I am searching for this since a few days ago, but without success. I think the FIWARE documentation could have tutorials, hands on... I have a VM with Orion Context Broker and a container with Keyrock IdM and Wilma PEP Proxy. I am trying to generate an access token to grant access for an application, but I still did not get it. Besides, I

Fiware IDM+AuthZForce+PEP-Proxy-Wilma

别说谁变了你拦得住时间么 提交于 2019-12-25 08:47:49
问题 I'm trying to put to work the IDM+AuthZForce+PEP-Proxy-Wilma to secure the Orion context broker, but I'm having a bit of trouble, nothing works, all is up and running, but there's no autentication and no security. I changed all the configuration files and nothing changed. I tried to populate the database (mongoDB or PostgreSQL) and nothing changed, too. All services are running in a docker-compose instance. Anyonce already has deployed this successfully? 回答1: I think you can get some help

Instance VM Creation

穿精又带淫゛_ 提交于 2019-12-25 04:54:05
问题 I was trying to launch a instance VM to do some test. I selected the image orion-psb-image-R4, but when I launch the instance, an error appears: (Status:ERROR Power State:No State), is impossible to associate an a Public IP (Error: undefined. Cause: 400 Error info). I created my key pair, my public IP and my security group (I'm using the default security group, but I created two new rules to use ports 1026 and 22), entered image description, then trying to launch a instance VM to do some

Subscriptions via websockets in Orion

梦想的初衷 提交于 2019-12-24 17:43:43
问题 Is it possible to create a websockets subscription from a browser? We are using the branch feature/1181_websockets branch, git version 5ca6770aa401b52a31293fdcef4a9743fb1de2c4 . We made a PoC trying to subscribe a browser via websockets. We tried connecting some JS code running in the browser to the subscriptions url. The connection was established, but orion crashed when sending data from the client through the socket. Is this use case supported? Do you have a working example for it? The JS

Fiware IoT Agent UL: Send command_value via mqtt to device

自作多情 提交于 2019-12-24 15:53:35
问题 I am using the IoT-agent for ultra light and I'd like to send a command (including a specific value) back to my IoT-Device. If I follow the example for a smart door here I can send something like: curl -iX PATCH \ 'http://localhost:1026/v2/entities/urn:ngsi-ld:pysense:002/attrs' \ -H 'Content-Type: application/json' \ -H 'fiware-service: openiot' \ -H 'fiware-servicepath: /' \ -d '{ "color": { "type" : "command", "value" : "100" } }' Fiware publishes the payload "urn:ngsi-ld:pysense:002@color

Orion: “curl: (7) couldn't connect to host”

[亡魂溺海] 提交于 2019-12-24 13:13:50
问题 I have installed the last version of Orion, 0.12.0, and when I send a queryContext or updateContext, the system gives me: "curl: (7) couldn't connect to host", what's the problem? Thanks! 回答1: After analyzing the user feedback in the question comments, the problem seems to be that Orion Context Broker is not running. In order to start Orion Context Broker (see reference documentation in https://wiki.fi-ware.org/Publish/Subscribe_Broker_-_Orion_Context_Broker_-_Installation_and_Administration

Accumulation Server - no action

让人想犯罪 __ 提交于 2019-12-24 11:50:17
问题 I have difficulties with making the accumulation server to work. I started it, however it doesn't give any results if OCB receive for example new subscription. The process looks like this: I start acc. server as told in tutorial from freshly cloned repo of OCB. As a result i get in console: tmp@tmp-VirtualBox:~/fiware-orion/scripts$ ./accumulator-server.py --port 1028 --url /accumulate --host ::1 --pretty-print -v verbose mode is on port: 1028 host: ::1 server_url: /accumulate pretty: True

Can anyone explain the usage of Context Broker via PeP proxy?

久未见 提交于 2019-12-24 11:32:50
问题 I have installed orion Context Broker and pep proxy on my machine. I am targeting the global instance of keyRock and the AuthZforce to authenticate the context broker. Here is my config.js: var config = {}; config.pep_port = 1307; // Set this var to undefined if you don't want the server to listen on HTTPS config.https = { enabled: false, cert_file: 'cert/cert.crt', key_file: 'cert/key.key', port: 443 }; config.account_host = 'https://account.lab.fiware.org'; config.keystone_host = 'cloud.lab