FalkTannhaeuser / python-onvif-zeep

ONVIF Client Implementation in Python 2+3 (using https://github.com/mvantellingen/python-zeep instead of suds as SOAP client)
MIT License
428 stars 140 forks source link

How can i use Probe function? #22

Open ltvnk opened 6 years ago

ltvnk commented 6 years ago

hi. how can i use Probe, for searching all devices in local network?

tomdoughty62 commented 6 years ago

Hello, Just to piggyback Itvnk's issue, I'm also having trouble with RemoteDiscovery and Probe.

RemoteDiscovery seems to be completely missed in the definition.py file, and I can't seem to find a create_remotediscovery_service when using ONVIFCamera

I noticed in client.py there is an ONVIFService which includes RemoteDiscovery and others, but when I'm trying to use the ONVIFService for instance like below: service = ONVIFService('10.0.1.10/onvif/device_service', 'user', 'password', '/etc/onvif/wsdl/remotediscovery.wsdl') #'http://www.onvif.org/ver10/network/wsdl')# print('Service created...') I receive an error like this - onvif.exceptions.ONVIFError: Unknown error: No binding found with the given QName. Available bindings are: {http://www.onvif.org/ver10/network/wsdl}RemoteDiscoveryBinding, {http://www.onvif.org/ver10/network/wsdl}DiscoveryLookupBinding

If I try and create a service I also have issues: `mycam = ONVIFCamera('10.0.1.10', 80, 'user', 'password', '/etc/onvif/wsdl/')

xaddr = 'http://10.0.1.10/onvif/remotediscovery' remotediscovery = mycam.create_onvif_service('remotediscovery.wsdl', xaddr, 'remotediscovery')

http://www.onvif.org/ver10/network/wsdl`

The module keeps reporting back with Unknown error: Unknown service remotediscovery.wsdl

Can anybody help?

Forgive me if there's an easy solution to all of this. I'm still learning Python and ONVIF.

tomdoughty62 commented 6 years ago

Seem to have found a response by one of the developers here - https://github.com/quatanium/python-onvif/issues/6

RemoteDiscovery has not been implemented at all sadly.

There is this module but it's got some issues I believe.