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

Not able to receive the event logs on my terminal #126

Open AchillesTD opened 1 month ago

AchillesTD commented 1 month ago

I'm working on a Python script that uses the ONVIF and Zeep libraries to retrieve NVR event logs and display them on my terminal. My goal is to access logs related to alarms such as motion detection, video tampering, scene changes, and video loss.

Currently, I’m able to fetch basic device information like the model, firmware version, system date and time, and RTSP URLs for my streams. I’ve also successfully obtained the event service capabilities, which indicate support for features such as WSSubscriptionPolicy, WSPullPoint, and others.

Here’s the current output for event service capabilities: --- Event Service Capabilities --- { '_value_1': None, 'WSSubscriptionPolicySupport': True, 'WSPullPointSupport': True, 'WSPausableSubscriptionManagerInterfaceSupport': False, 'MaxNotificationProducers': 10, 'MaxPullPoints': 5, 'PersistentNotificationStorage': None, '_attr_1': { 'PersistenNotificationStorage': 'false' } }

What steps should I take to get the event logs displayed on my terminal? Is it possible to retrieve these logs directly from my DAHUA NVR without using additional tools like MQTT?

My NVR Model is DHI-NVR5216-16P-I

any help would be appreciated!