quatanium / python-onvif

ONVIF Client Implementation in Python
MIT License
471 stars 319 forks source link

Change WDR #66

Open oaeide opened 6 years ago

oaeide commented 6 years ago

Hi. I am trying to change WDR(described in this doc) using the onvif-cli. I am somewhat stuck, since every imaging commandI try gives me "False: Unknown error: Missing element VideoSourceToken (GetStatus.VideoSourceToken)"

oaeide commented 6 years ago

ONVIF >>> cmd imaging GetImagingSettings {'VideoSourceToken', '1'} False: Invalid params

Could someone please tell me what I am doing wrong here?

ts-accessio commented 4 years ago

If you still need the information (or for people like me a week ago): You can get the VideoSourceToken from the GetVideoSources call in the media service ONVIF >>> cmd media GetVideoSources

oaeide commented 4 years ago

Hey! Wow, thanks for updating this, despite the age of this issue. 👍

I actually do still need it, as I didn't really find a solution to changing WDR remotely, and for some reason the cameras (or camera system) i manage resets this every 24hrs

Will pull up my own code, and have a look later tonight!

ubergeekNZ commented 2 years ago

I am trying to get the imaging settings but returns with an error. I retrieve the VideoSourceToken from above and inserted into the json/dict string.

cmd imaging GetImagingSettings {'VideoSourceToken', '000'}
False: Invalid params