Giter VIP home page Giter VIP logo

Comments (6)

vyshali-chitikeshi avatar vyshali-chitikeshi commented on July 17, 2024

set_scopes

from device-onvif-camera.

weichou1229 avatar weichou1229 commented on July 17, 2024

According to the spec https://www.onvif.org/ver10/device/wsdl/devicemgmt.wsdl#op.SetScopes
The device service treats the parameterScopes - unbounded; [anyURI] as an array.
Please try the following JSON body:

curl --location --request PUT 'http://0.0.0.0:59882/api/v2/device/name/Camera003/Scopes' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Scopes":{
        "Scopes":[
            "http//:123"
        ]
    }
}'

from device-onvif-camera.

vyshali-chitikeshi avatar vyshali-chitikeshi commented on July 17, 2024

Followed the recommendation, set scopes still not updating all confiugratble scopes as expected. Tested on geo vision camera.
One more question, in the test metric, for tapo camera 'add scopes' marked as 'x' and set scope marked as 'o', to execute set scopes first we need to add configurable scope using 'add scope', if 'add scope' is not working on tapo camera how you guys executed set scopes command?

from device-onvif-camera.

brianointel avatar brianointel commented on July 17, 2024

verified on the Bosch camera with the following in postman:

{
"Scopes":{
"Scopes":[
"http//:testscope"
]
}
}

getScopes returned:

{
"apiVersion": "v2",
"statusCode": 200,
"event": {
"apiVersion": "v2",
"id": "c43f741b-2a88-416d-b03e-e29176180464",
"deviceName": "Camera001",
"profileName": "onvif-camera",
"sourceName": "Scopes",
"origin": 1650650852185086200,
"readings": [
{
"id": "ee3d80df-f160-4201-ad79-a05f3d2865d6",
"origin": 1650650852185086200,
"deviceName": "Camera001",
"resourceName": "Scopes",
"profileName": "onvif-camera",
"valueType": "Object",
"objectValue": {
"Scopes": [
{
"ScopeDef": "Fixed",
"ScopeItem": "onvif://www.onvif.org/type/Network_Video_Transmitter"
},
{
"ScopeDef": "Fixed",
"ScopeItem": "onvif://www.onvif.org/name/Bosch"
},
{
"ScopeDef": "Fixed",
"ScopeItem": "onvif://www.onvif.org/hardware/DINION_IP_starlight_6000_HD"
},
{
"ScopeDef": "Fixed",
"ScopeItem": "onvif://www.onvif.org/Profile/Streaming"
},
{
"ScopeDef": "Configurable",
"ScopeItem": "http//:testscope"
},
{
"ScopeDef": "Fixed",
"ScopeItem": "onvif://www.onvif.org/Profile/G"
},
{
"ScopeDef": "Fixed",
"ScopeItem": "onvif://www.onvif.org/Profile/T"
}
]
}
}
]
}
}

from device-onvif-camera.

weichou1229 avatar weichou1229 commented on July 17, 2024

Followed the recommendation, set scopes still not updating all confiugratble scopes as expected. Tested on geo vision camera. One more question, in the test metric, for tapo camera 'add scopes' marked as 'x' and set scope marked as 'o', to execute set scopes first we need to add configurable scope using 'add scope', if 'add scope' is not working on tapo camera how you guys executed set scopes command?

@vyshali-chitikeshi You can execute SetScopes command directly. I also created a PR #64, you can test ONVIF APIs by the Postman.

from device-onvif-camera.

weichou1229 avatar weichou1229 commented on July 17, 2024

Close this issue because it's not the device-onvif-camera's bug.
Since some cameras do not support the ONVIF very well and we can verify the camera's capability by SOAP API, please reopen this issue if you have further questions.

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.