Giter VIP home page Giter VIP logo

Comments (7)

cloudxxx8 avatar cloudxxx8 commented on July 17, 2024

are you running device-onvif-camera and other services in the same docker network?

from device-onvif-camera.

cloudxxx8 avatar cloudxxx8 commented on July 17, 2024

please verify whether you can access the core-metadata API in another way, such as browser, curl, or postman
http://edgex-core-metadata:59881/api/v2/device/service/name/device-onvif-camera?limit=-1&offset=0

from device-onvif-camera.

tapeshmathur avatar tapeshmathur commented on July 17, 2024

are you running device-onvif-camera and other services in the same docker network?

As mentioned in the https://github.com/edgexfoundry/device-onvif-camera/blob/main/doc/auto-discovery-docker.md
, device-onvif-camera is working on host network and other services are running on edgex network.

image

from device-onvif-camera.

tapeshmathur avatar tapeshmathur commented on July 17, 2024

please verify whether you can access the core-metadata API in another way, such as browser, curl, or postman http://edgex-core-metadata:59881/api/v2/device/service/name/device-onvif-camera?limit=-1&offset=0

@cloudxxx8 Thank you for a reply.
When I do a curl request to http://edgex-core-metadata:59881/api/v2/device/service/name/device-onvif-camera?limit=-1&offset=0 , it is giving an error as cannot resolve edgex-core-metadata. But if do curl on http://:59881/api/v2/device/service/name/device-onvif-camera?limit=-1&offset=0 , I am getting a response.

So, basically if we call this api from inside the container which is the part of the edgex network, it is able to resolve the device-onvif-camera DNS, but if we call from any container which is outside the edgex network i.e. host network in our case it is not able to resolve the device-onvif-camera DNS.

Do you where I can change this url, and change device-camera-go with the machine IP?
Or any suggestion on how this problem can be solved?

Thank you in advance.

from device-onvif-camera.

cloudxxx8 avatar cloudxxx8 commented on July 17, 2024

you can just use the docker port mapping, and the host ip should work
in the configuration file


or, you can set the environment variable in the docker container to override the config SERVICE_HOST
like
SERVICE_HOST: edgex-device-onvif-camera

from device-onvif-camera.

weichou1229 avatar weichou1229 commented on July 17, 2024

@tapeshmathur device-onvif-camera has a new discovery mechanism netscan, it can cross different networks,

APPCUSTOM_DISCOVERYSUBNETS: 192.168.93.0/24

see https://github.com/edgexfoundry/device-onvif-camera/blob/main/doc/auto-discovery.md#netscan

from device-onvif-camera.

lenny-intel avatar lenny-intel commented on July 17, 2024

Closing due to no response

from device-onvif-camera.

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.