python code to test camera ONVIF(EZVIZ) on LAN, if you do not know the ip, use nmap to scan.
from onvif import ONVIFCamera
camera = ONVIFCamera(
'192.168.1.8',
80,
'admin',
'your_key', #get from QR or app
no_cache=True
)
print("Connected to ONVIF")
info = camera.devicemgmt.GetDeviceInformation()
print("Manufacturer:", info.Manufacturer)
print("Model:", info.Model)
print("Firmware:", info.FirmwareVersion)
print("Serial:", info.SerialNumber)
print("Hardware ID:", info.HardwareId)

No comments:
Post a Comment