Changing MonitorCollection via API

Have some questions or having issues with your DVR/NVR(s), Post them here for the mods and other users to assist you with.
Post Reply
amcrest110
Posts: 7
Joined: Mon Oct 10, 2016 10:11 am

Changing MonitorCollection via API

Post by amcrest110 »

I am trying to change the active channel on my NVR.

When I run a getConfig

Code: Select all

curl -v --digest -u 'admin:xxx' 'http://172.16.0.189/cgi-bin/configManager.cgi?action=getConfig&name=MonitorCollection'
It returns:

Code: Select all

table.MonitorCollection.favorite:0.Windows[0].VideoChannel=12
table.MonitorCollection.favorite:0.Mode=Split1
I've read the documentation, but none of these commands to setConfig work (website is blocking the full curl command):

Code: Select all

... 'http://172.16.0.189/cgi-bin/cgi-bin/configManager.cgi?action=setConfig&table.MonitorCollection.favorite:0.Windows[0].VideoChannel=12&table.MonitorCollection.favorite:0.Mode=Split1'
... 'http://172.16.0.189/cgi-bin/cgi-bin/configManager.cgi?action=setConfig&table.MonitorCollection.favorite[0].Windows[0].VideoChannel=12&table.MonitorCollection.favorite[0].Mode=Split1'
... 'http://172.16.0.189/cgi-bin/cgi-bin/configManager.cgi?action=setConfig&MonitorCollection.favorite[0].Windows[0].VideoChannel=12&MonitorCollection.favorite[0].Mode=Split1'
... 'http://172.16.0.189/cgi-bin/cgi-bin/configManager.cgi?action=setConfig&MonitorCollection.Favorite0.Mode=split1&MonitorCollection.Favorite0.Windows[0].Enable=true&MonitorCollection.Favorite0.Windows[0].VideoChannel=12'
... 'http://172.16.0.189/cgi-bin/cgi-bin/configManager.cgi?action=setConfig&MonitorCollection.Favorite0.Mode=split1&MonitorCollection.Favorite[0].Windows[0].Enable=true&MonitorCollection.Favorite[0].Windows[0].VideoChannel=12'
... 'http://172.16.0.189/cgi-bin/cgi-bin/configManager.cgi?action=setConfig&MonitorCollection.Favorite1.Mode=split1&MonitorCollection.Favorite1.Windows[0].Enable=true&MonitorCollection.Favorite1.Windows[0].VideoChannel=12'
Post Reply