We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question
1

create/update/subscribe pattern Use case Orion --> cygnus Fiware

asked 2016-02-10 09:37:29 +0100

philg gravatar image

Hello, i would like to create and then update an entity regularly . And then subscribe to modifications , sending these modifs to my runnning fiware-cygnus handler ( via http notify)

is it possible to use a running orion instance ( ie http://orion.lab.fiware.org:1026) to experiment this Use Case

Thanks phil

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2016-02-17 06:32:23 +0100

Fermín Galán gravatar image

Already answered in StackOverflow: http://stackoverflow.com/questions/35...

edit flag offensive delete link more
0

answered 2016-02-17 08:26:41 +0100

philg gravatar image

Hello fermin thanks for the answer

well, i think different points are not clear for me .....

My SW context :

     - I run a docker orion (version 0.27.0-next) in debug mode 

     - i run a compiled  fiware-cygnus-0.11.0  locally( works well  when i send a notif to http://localhost:5050/notify, my  CKAN sink receive the notif) .. good

The first issue is about V1 or V2 , not clear for me ...

i have registrated a subscription with v2 prefix

curl localhost:1026/v2/subscriptions -s -S --header 'Content-Type: application/json' --header 'Accept: application/json' -X POST-d @- | python -mjson.tool) <<eof {="" "expires":="" "2016-02-18t01:00:00.00z",="" "notification":="" {="" "attributes":="" [="" "temperature",="" "humidity"="" ],="" "callback":="" "http:="" localhost:5050="" notify",="" "throttling":="" 1="" },="" "subject":="" {="" "condition":="" {="" "attributes":="" [="" "temperature="" "="" ],="" "expression":="" {="" "q":="" "temperature="">40" } }, "entities": [ { "id": "Bcn-Welt5", "type": "Room" } ] } } EOF

i see it in the subscription list ...... with curl localhost:1026/v2/subscriptions .......

so want to create/update entities . So i use v1 or v2 for entities ?

best regards phil

edit flag offensive delete link more

Comments

I'd suggest to post the new question in a separate post, for the sake of cleaness. In addition, I'd recommend using StackOverflow for it (see https://ask.fiware.org/question/39/stackoverflow-or-askfiwareorg/). Please use the "fiware-orion" label. Thanks!

Fermín Galán gravatar imageFermín Galán ( 2016-02-25 15:32:07 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-02-10 09:37:29 +0100

Seen: 3,602 times

Last updated: Feb 17 '16