sr99622 / libonvif

Onvif library with GUI implementation and built in YOLOX
GNU Lesser General Public License v2.1
173 stars 44 forks source link

Auxiliara operations #53

Open mithrandir42 opened 1 year ago

mithrandir42 commented 1 year ago

In the onvif spec Auxiliary operations are defined. Theses allow i.e. turning on/off the IR lamp or a white lamp. These commands can differ on a per device basis. The commands can be sent via SendAuxiliaryCommand() and one can get the available commands via GetNodes () or GetCapabilityes () of PTZService (at least for some cameras). Are there plans to support this or is this already possible, somehow?

I.e., with using a motion backend, one then could execute a command to enable the white light when motion is detected and turn it off again after a cool down time.

WadeTsai commented 3 months ago

It'd be great if this util could change the setting of IrCutFilter (On/Off/Auto).

sr99622 commented 3 months ago

Thank you so much for reaching out. I did some research on the GetNodes and SendAuxilliaryCommand operations in the ONVIF spec. As is often the case, it appears that the majority of cameras do not support this operation. Of the twelve different cameras I have on hand, about half support GetNodes and none of those have any Auxilliary Commands available. If there is a particular camera that you know of that supports these operations, I might be able to pick one up and have a look.

Best Regards,

Stephen