Tuesday, September 29, 2026

Camera on LAN - Check on LAN

 

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:

Camera on LAN - Get urls

  python code snippet  to get url for use with vlc and show the camera on LAN   #connection code , previously done in this blog media = came...