fiware-orion

Orion Context Broker Using Match Pattern with number

十年热恋 提交于 2019-12-24 10:44:17
问题 For example I have a person like below. I wan to query person has phoneNumber contains "354". I will use the query like this.GET /v2/entities?q=phoneNumber~=354. So is it possible to do the query like this in orion context broker? As I have seen that the match pattern only support target property as string. Match pattern: ~=. The value matches a given pattern, expressed as a regular expression, e.g. color~=ow. For an entity to match, it must contain the target property (color) and the target

Get auth token for accesing Orion FI-LAB instance

二次信任 提交于 2019-12-24 09:52:04
问题 i'm trying to make a request to orion broker using REST Client, for example a NGSI10 queryContext with a payload like this one: { "entities": [ { "type": "*", "isPattern": "false", "id": "Sevilla:01727449" } ] } and I always receive the same result: Auth-token not found in request header The orion context broker that i´m using is fi-ware lab context broker and I want to know how to make a authorized request to this CB using REST Client, if it is possible. Thanks 回答1: The Orion instance at FI

Fiware-Orion how to save an image .png file to orion

*爱你&永不变心* 提交于 2019-12-24 08:09:20
问题 As the title, I want to save my .png file to Orion. I tried to use binary file but I got an error due to fobiden character? So It is posible to save png file to orion. Is there a best practice for the case. Many thanks 回答1: if the image is not so big you can use a data URL https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs otherwise I would use an external storage mechanism and only keep in Orion a URL pointing to the object storage where your image is. best 来源: https:

Primitive types supported by Fiware Orion Context Broker?

筅森魡賤 提交于 2019-12-24 07:37:43
问题 I have been trying for some time to find in the official documentation of FIWARE which are the primitive types supported by Orion for the attributes of a context entity. This is the only piece of information that I found about that in NGSI docs: The attribute type represents the NGSI value type of the attribute value. Note that FIWARE NGSI has its own type system for attribute values, so NGSI value types are not the same as JSON types. I tried to create context entities using types like

Fiware: NGSI v2 susbcription: getting notified only about the attribute that has changed

↘锁芯ラ 提交于 2019-12-24 07:28:23
问题 I have this subscription: { "id": "5a27abba56256c402cec5654", "description": "my subscription", "status": "active", "subject": { "entities": [ { "idPattern": ".*" } ], "condition": { "attrs": [] } }, "notification": { "timesSent": 56939, "lastNotification": "2018-01-29T09:06:45.00Z", "attrs": [], "attrsFormat": "normalized", "http": { "url": "http://notif_url" }, "lastFailure": "2018-01-24T15:10:08.00Z", "lastSuccess": "2018-01-29T09:06:45.00Z" } } Using it I can get notified about new

How to configure Cygnus in relation to Orion and Cosmos

孤人 提交于 2019-12-24 05:28:10
问题 We have Orion, Cygnus, and Cosmos installed, and are trying to get the connections between them working: via the broker Orion messages are to be forwarded to Cygnus, which in turn is to write those to the Cosmos database. We know that Orion is working properly (it has been tested and used before), and have tested Cygnus with the test python script (as explained in https://github.com/telefonicaid/fiware-cygnus/blob/master/doc/quick_start_guide.md). Currently we are trying to configure Cygnus

Java client implementation for NGSI and ContextBroker communications

≡放荡痞女 提交于 2019-12-24 04:26:11
问题 In order to not reinventing the wheel I am looking for some existing library for connecting to Orion Context Broker from Java code. I have found that at fiware.org there is published sample code but I do not like it as it does not hide raw XML usage. I have also found some code at github Some people seems to have worked on it but I did not find the sources. Is there some open library becoming popular reference on it? being API clean and easy to use and hiding low level things? (XML parsing,

Fiware response 503 - Service unavailable

こ雲淡風輕ζ 提交于 2019-12-24 04:07:09
问题 we are getting this error, since 11.30 GMT+2, when trying to request information from this URL http://orion.lab.fi-ware.org:1026/ngsi10/queryContext?limit='+str(limit)+'&details=on 503 - Service Unavailable Error in IDM communication Later this morning it worked fine. Thank you 回答1: If the service get back up during the morning, it doesn't seem to be a major problem. This kind of glitches happen from time to time. 来源: https://stackoverflow.com/questions/31986050/fiware-response-503-service

Load balanced Fiware Orion

笑着哭i 提交于 2019-12-24 03:30:01
问题 I just created a dockerized load balanced version of OCB using Nginx and supervisord running separate instances of Orion balanced by Nginx. Only for testing purposes. My question is if I use this approach, would I have some troubles with TIMEINTERVAL subscriptions? (I don't want 'n' notifications for each OCB process). Any help will be sure appreciated. 回答1: Current Orion version (0.23.0) works in the following way: at creation time, the ONTIMEINTERVAL subscribeContext is dispatched by the LB

Fiware Ultralight 2.0 IoTAgent: How to send measure from a device?

半腔热情 提交于 2019-12-24 02:55:09
问题 I am working on a POC to create Smart City IoT project using Fiware platform. I am trying to run end to end flow. I have following Docker containers running. CONTAINER ID PORTS NAMES 24f036202f78 0.0.0.0:4041->4041/tcp, 0.0.0.0:7896->7896/tcp fiware_iotagent_1 81e16c78312e 0.0.0.0:1026->1026/tcp fiware_orion_1 bf699e1acdd3 0.0.0.0:1883->1883/tcp fiware_mosquitto_1 bfc256deddd0 0.0.0.0:27017->27017/tcp fiware_mongo_1 I am using following tutorials. http://fiwaretourguide.readthedocs.io/en