python-onvif-zeep
python-onvif-zeep copied to clipboard
How can i use Probe function?
hi. how can i use Probe, for searching all devices in local network?
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/wsdlThe 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.
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.