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 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'))Code: Select all
name=watch2
sn=AMC046CD83D5EFDFB6
Error
Bad Request!
Error
Bad Request!