python-onvif-zeep
python-onvif-zeep copied to clipboard
TLS/SSL support
trafficstars
would be nice to have TLS/SSL support, because my cam only supports https access.
This version does support TLS
from onvif import ONVIFCamera
from requests import Session
from zeep.transports import Transport
session = Session()
session.verify = False # Only if you need to not validate certificates, not recommended for production
transport = Transport(session=session)
# You have to specify https in the hostname for it to work properly
mycam = ONVIFCamera('https://1.1.1.1', 443, 'admin', '1234', transport=transport)