• June 23, 2017, 10:18:31 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Control DCS-930L from a script  (Read 1899 times)

repiuk

  • Level 1 Member
  • *
  • Posts: 2
Control DCS-930L from a script
« 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, ...
Logged

discarn8

  • Level 1 Member
  • *
  • Posts: 3
Re: Control DCS-930L from a script
« Reply #1 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

 :)
Logged

repiuk

  • Level 1 Member
  • *
  • Posts: 2
Re: Control DCS-930L from a script
« Reply #2 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
« Last Edit: September 14, 2014, 03:21:36 AM by repiuk »
Logged

discarn8

  • Level 1 Member
  • *
  • Posts: 3
Re: Control DCS-930L from a script
« Reply #3 on: October 23, 2014, 02:29:55 AM »

Right back atcha comrade - excellent info - thanks
Logged

rjms

  • Level 1 Member
  • *
  • Posts: 10
Re: Control DCS-930L from a script
« Reply #4 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
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 42284
  • D-Link Global Forum Moderator
    • New DIR-890L Router with SmartConnect™ Technology
Re: Control DCS-930L from a script
« Reply #5 on: August 11, 2016, 12:16:53 PM »

Thanks for posting this information. Hope it helps future users.
 ;)
Logged
Cable:100mb/3Mb>Motorola SB6183>DIR-880L>HP 24pt Gb Switch. 3xDGL-4500s,DIR-857,835,827,815,890L,880L,868L,865L,836L,826L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L and a Boxee.
Go Here>Router Troubleshooting

discarn8

  • Level 1 Member
  • *
  • Posts: 3
Re: Control DCS-930L from a script
« Reply #6 on: June 09, 2017, 05:19:28 PM »

@RJMS - THANK YOU!!!!!!
Logged