I want to change Dahua IPC camera profiles from Homeseer. The http command is:
userassword@192.168.0.x/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[0].NightOptions.SwitchMode=1
When I execute this command from a browser, the profiles do change with the caveat that there is an additional step asking me to confirm that "user" is trying to log in.
In HS, I am doing this in an event by running a script. I've been unable to get the profiles to change. I'm using hs.getURL and have tried it 2 different ways:
hs.getURL("userassword@192.168.0.x","/cgi-bin.../,FALSE,80)
hs.getURL("userassword@192.168.0.x/cgi-bin/xxx","",FALSE,80)
I suspect that the additional confirmation step may be the issue.
If anyone has any ideas for me to try, please let me know.
userassword@192.168.0.x/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[0].NightOptions.SwitchMode=1
When I execute this command from a browser, the profiles do change with the caveat that there is an additional step asking me to confirm that "user" is trying to log in.
In HS, I am doing this in an event by running a script. I've been unable to get the profiles to change. I'm using hs.getURL and have tried it 2 different ways:
hs.getURL("userassword@192.168.0.x","/cgi-bin.../,FALSE,80)
hs.getURL("userassword@192.168.0.x/cgi-bin/xxx","",FALSE,80)
I suspect that the additional confirmation step may be the issue.
If anyone has any ideas for me to try, please let me know.
Comment