python-onvif-zeep icon indicating copy to clipboard operation
python-onvif-zeep copied to clipboard

Add service for NotificationProducerBinding

Open monocongo opened this issue 6 years ago • 0 comments

In order to create a subscription for notification events, (I think) I need to issue a request to NotificationProducer.Subscribe.

I propose to add a new notification service in definition.py as well as a corresponding ONVIFCamera.create_notification_service function within client.py

The above will allow for something like this:

    # get the notification service we'll use for access to camera notifications
    notification_service = camera.get_service("notification")

    # subscribe for notification events
    args = {"InitialTerminationTime": "PT10M",
            "Address": f"{_LOCAL_IP_ADDRESS}:{_LISTENER_PORT}"}
    notification_service.Subscribe(args)

monocongo avatar Feb 13 '19 20:02 monocongo