D-Link Forums
The Graveyard - Products No Longer Supported => IP Cameras => DCS-930L => Topic started by: repiuk on July 07, 2014, 06:52:46 AM
-
I would like to enable/disable motion detection on my cams from a script. Any scripting examples are fine. Applescript, lua, ...
-
This is not to control motion per se, but if you're like me - searching months for a way to control the brightness / contrast from a shell script, crontab, etc., so you can adjust it based on time of day - try this:
curl -u userid:password -d "&ReplySuccessPage=image.htm&ReplyErrorPage=errrimg.htm&BrightnessControl=60&ContrastControl=95&ConfigSystemStream=Save" http://your_camera_ip/setSystemStream >/dev/null 2>&1
:)
-
Thanks for this excellent pointer!
for motion this works for me
curl -u usercode:password -d "&ReplySuccessPage=setSystemMotion.htm&ReplyErrorPage=setSystemMotion.htm&MotionDetectionEnable=1&ConfigSystemMotion=Save" http://your.ip:port/setSystemMotion >/dev/null 2>&1
-
Right back atcha comrade - excellent info - thanks
-
With the new Rev A firmware version v1.15 B04 (2016-08), one must add a "--referer" for this to work, e.g.:
curl -u userid:password http://your_camera_ip/setSystemStream --referer http://your_camera_ip/image.htm -d "ReplySuccessPage=image.htm&ReplyErrorPage=errrimg.htm&BrightnessControl=60&ContrastControl=95&ConfigSystemStream=Save" >/dev/null 2>&1
-
Thanks for posting this information. Hope it helps future users.
;)
-
@RJMS - THANK YOU!!!!!!