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

Title: Control DCS-930L from a script
Post 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, ...
Title: Re: Control DCS-930L from a script
Post by: discarn8 on September 14, 2014, 02:43:11 AM
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

 :)
Title: Re: Control DCS-930L from a script
Post by: repiuk on September 14, 2014, 03:08:05 AM
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
Title: Re: Control DCS-930L from a script
Post by: discarn8 on October 23, 2014, 02:29:55 AM
Right back atcha comrade - excellent info - thanks
Title: Re: Control DCS-930L from a script
Post by: rjms on August 11, 2016, 08:14:09 AM
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
Title: Re: Control DCS-930L from a script
Post by: FurryNutz on August 11, 2016, 12:16:53 PM
Thanks for posting this information. Hope it helps future users.
 ;)
Title: Re: Control DCS-930L from a script
Post by: discarn8 on June 09, 2017, 05:19:28 PM
@RJMS - THANK YOU!!!!!!