Problem updating motion detect settings

Have some questions or having issues with your IP Camera(s), Post them here for the mods and other users to assist you with.
Post Reply
Grantykins
Posts: 1
Joined: Thu Feb 13, 2020 12:39 am

Problem updating motion detect settings

Post by Grantykins »

I have two IP8M-2496EB cameras with the following information:

Code: Select all

Software Version
V2.622.00AC000.0.R, Build Date: 2019-10-24
WEB Version
V3.2.1.677800
ONVIF Version
16.12(V2.4.3.651299)
S/N
AMC046CD83D5EFDFB6

Code: Select all

Software Version
V2.622.00AC000.0.R, Build Date: 2019-10-24
WEB Version
V3.2.1.677800
ONVIF Version
16.12(V2.4.3.651299)
S/N
AMC04610859D520056
The "Detection Area" setup does not work in any browser I attempt to use. The interface allows me to change settings, but the save fails.

After trying different browsers I wrote a Python script that uses the HTTP API directly:

Code: Select all

import requests

base_url = 'http://192.168.22.103/cgi-bin/{}'
digest_auth = requests.auth.HTTPDigestAuth('admin', 'REDACTED')

response = requests.get(base_url.format('magicBox.cgi?action=getMachineName'), auth=digest_auth)
print(response.content.decode('utf-8'))
response = requests.get(base_url.format('magicBox.cgi?action=getSerialNo'), auth=digest_auth)
print(response.content.decode('utf-8'))

response = requests.get(base_url.format('configManager.cgi?action=setConfig&MotionDetect[0].MotionDetectWindow[0].Sensitive=60'), auth=digest_auth)
print(response.content.decode('utf-8'))
response = requests.get(base_url.format('configManager.cgi?action=setConfig&MotionDetect[0].MotionDetectWindow[0].Threshold=6'), auth=digest_auth)
print(response.content.decode('utf-8'))
This results in the following output:

Code: Select all

name=watch2

sn=AMC046CD83D5EFDFB6

Error
Bad Request!

Error
Bad Request!
What is wrong here? I am following the API described here: https://s3.amazonaws.com/amcrest-files/ ... 3.2017.pdf
Post Reply