Giter VIP home page Giter VIP logo

Comments (7)

ckl-fokus avatar ckl-fokus commented on June 1, 2024

Hi @janaka1984,

Thanks for your feedback and sorry for the late reply.

I fixed the problem with the influxdb app. It had to be renamed to "influxdb-app". Therefore you should be able to start it via:

./apps/influxdb-app 

Also, I have corrected the curl scipts in the documentation of the OCB app. The scripts should work now.

But I was not able to reproduce any problems with the mongoDB and the OCB. The log message you mentioned ([...]waiting for connections[...]) is perfectly normal.
Maybe you can test the setup again with the newest version. If the problem with the mongoDB is not solved, it would be nice if you could send me the output of:

docker logs <MONGODB CONTAINER ID>
docker logs <OCB CONTAINER ID>

from openmtc.

ckl-fokus avatar ckl-fokus commented on June 1, 2024

Is it possible that you have deleted your last comment? I got a notification, but I can not see your comment here. Maybe the issue is solved?

from openmtc.

janaka1984 avatar janaka1984 commented on June 1, 2024

yes i could find solution. actually i thought it is the issue. but after find where influxdb is called from openmtc , i deleted it .

still pending to check OCB and mongodb , after check it , i will give feedback

from openmtc.

janaka1984 avatar janaka1984 commented on June 1, 2024

Hi @ckl-fokus
Following curl script does not return value as mentioned on README file

curl -X "GET" localhost:18000/~/mn-cse-1/onem2m/CUL868IPE/S300TH_1/temperature/latest -s |
jq -r '."m2m:cin".con' |
base64 -d | jq '.'

curl localhost:1026/v2/entities/mn-cse-1-Wohnzimmer/ -s -S | jq '."temperature"'

curl localhost:1026/v2/entities/mn-cse-1-Bad/attrs -s -S
--header 'Content-Type: application/json'
-X PATCH -d @- <<EOF
{
"cmd": {
"value": "ON",
"type": "String"
}
}
EOF

curl -X "GET" localhost:18000/~/mn-cse-1/onem2m/CUL868IPE/FS20_ST3_16108_1/switch/latest -s | jq '."m2m:cin".con'

But it is possible to connect OCB and mongodb and store data on db.

When run './apps/orion-context-broker -v' to use OCB without docker , it is connected to openmtc backend worked. but i can not see any parameter on config.json to connect Mongodb, can you give hint for this?

from openmtc.

ckl-fokus avatar ckl-fokus commented on June 1, 2024

Hi @janaka1984,

Thanks for your valueable feedback.

about the curl commands:
There were still remaining mistakes in the curl commands. They should be fixed now.

about the mongodb config option
Maybe you misunderstood something about the architecture. The command './apps/orion-context-broker -v' will not start the Orion Context Broker itself, instead it will start the OpenMTC app, which will connect OpenMTC to the Orion Context Broker. If you have a look at the architecture picture here, you will see that the app is not directly connected to the MongoDB. Therefore there is no need to configure something in regard to the MongoDB.
If you want to start the Orion Context Broker itself without using Docker, you can check the official documentation by Fiware.

from openmtc.

ckl-fokus avatar ckl-fokus commented on June 1, 2024

Hi @janaka1984,

Is the issue solved for you?

from openmtc.

janaka1984 avatar janaka1984 commented on June 1, 2024

hi @ckl-fokus

problem was solved , thank you very much for your support

from openmtc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.