Enable/Disable Privacy Masking using the Dahua HTTP API

Discussion in 'Dahua' started by Buttan Butt, Oct 19, 2017.

Share This Page

  1. Buttan Butt

    Buttan Butt n3wb

    Joined:
    Jun 4, 2017
    Messages:
    19
    Likes Received:
    2
    Hello there!

    I'm struggeling to find out if it's possible to Enable/Disable Privacy Masking by using the Dahua HTTP API.

    I've tried but until now, I still haven't figured out if it's possible. @nayr made a posting about Switching Dahua Day/Night Profile via IPC HTTP API that has been really helpful. But I still haven't solved this.

    Please let me know if you have any idea how to solve this ... Is it even possible? It can be done in the Web GUI but I need to automate this task using the HTTP API.

    Cheers!
     
  2. bp2008

    bp2008 Staff Member

    Joined:
    Mar 10, 2014
    Messages:
    6,213
    Likes Received:
    2,730
    Hmm, I don't see anything about the privacy masks either. It isn't impossible to use the undocumented internal API that the web GUI uses, but it is rather painful since you have to log in, do your thing, log out, etc, and it is a lot more complicated than just sending one request.
     
    Buttan Butt likes this.
  3. Buttan Butt

    Buttan Butt n3wb

    Joined:
    Jun 4, 2017
    Messages:
    19
    Likes Received:
    2
    Thanks. I tried to "spy" on what my browser sent but i failed.
     
  4. adamg

    adamg Young grasshopper

    Joined:
    Sep 19, 2017
    Messages:
    38
    Likes Received:
    7
    Easy money guys.

    For region block 0: (there are also Covers[1], Covers[2], and Covers[3] on my camera)
    turn on block 0
    http://[IP]/cgi-bin/configManager.cgi?action=setConfig&VideoWidget[0].Covers[0].EncodeBlend=true
    turn off block 0
    http://[IP]/cgi-bin/configManager.cgi?action=setConfig&VideoWidget[0].Covers[0].EncodeBlend=false

    Check current settings with:
    http://[IP]/cgi-bin/configManager.cgi?action=getConfig&name=VideoWidget

    Add the username/password into the URL if you don't want to have to manually fill in the popup credential request.
     
    bp2008 and Buttan Butt like this.
  5. Buttan Butt

    Buttan Butt n3wb

    Joined:
    Jun 4, 2017
    Messages:
    19
    Likes Received:
    2
    Thank you @adamg

    It works very well!