Skip to content

How to use this library? #166

@weneedred1-stack

Description

@weneedred1-stack

I tried using this library to manually connect to my camera by following the README.md

python3
>>> import asyncio
from onvif import ONVIFCamera
mycam = ONVIFCamera('192.168.0.2', 80, 'user', 'passwd', '/etc/onvif/wsdl/')
await mycam.update_xaddrs()

But the /etc/onvif/wsdl wasn't found naturally I got it from: https://github.com/onvif/specs.git and had to manually copy the devicemgmt.wsdl from specs/wsdl/ver10/device/wsdl/

Now I'm getting another error:

RuntimeError: Loading /ver10/schema/onvif.xsd is not supported in async mode

Is it not possible to simply use this library directly??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions