Open jenswes opened 1 year ago
media = mycam.create_imaging_service()
media.SetImagingSettings({'VideoSourceToken': '000', 'ImagingSettings':{'Focus': {
'AutoFocusMode': 'MANUAL',
'DefaultSpeed': 0.3,
'NearLimit': 1.0,
'FarLimit': 10.0,
'Extension': None,
'_attr_1': None
}}})
Hello,
I'm trying to figure out howto translate the output of any onvif camera into a working onvif-cli commandline
so far i have: (if you have same more, please add here)
often i got a strange error like
cmd devicemgmt SetHostname {'Name': 'camo01', 'FromDHCP': True} False: Unknown error: The Token type doesn't accept collections as value
ONVIF >>> cmd devicemgmt SetHostname {'Name': 'camo01'} True: {}
ONVIF >>> cmd devicemgmt SetHostname {'FromDHCP': True} False: Unknown error: The Token type doesn't accept collections as value
ONVIF >>> cmd devicemgmt GetHostname True: OrderedDict([('FromDHCP', False), ('Name', 'camo01'), ('Extension', None), ('_attr_1', None)])
as the devicemgmt GetHostname has FromDHCP. i have an error setting this.
My goal would be adjusting zoom and fokus
From cmd media GetProfiles i have the profiles:
cmd imaging GetImagingSettings {'VideoSourceToken': '000'}
(offtopic, the output is ugly to read, any idea hot make it nicer?)
Here we have ('Focus', OrderedDict([('AutoFocusMode', 'AUTO'), ('DefaultSpeed', 5.0), ('NearLimit', 0.0), ('FarLimit', 100.0)
but how to construCt an onvif-cli
ONVIF >>> cmd imaging SetImagingSettings {'VideoSourceToken': '000'} False: Unknown error: Missing element ImagingSettings (SetImagingSettings.ImagingSettings)
ONVIF >>> cmd imaging SetImagingSettings {'AutoFocusMode': 'manual'} False: Unknown error: The ReferenceToken type doesn't accept collections as value
ONVIF >>> cmd imaging SetImagingSettings {'NearLimit': '30'} False: Unknown error: The ReferenceToken type doesn't accept collections as value
i would be happy if someone is able to shine some light on this thank you :-)