• November 05, 2024, 01:22:29 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 7920 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: 13
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: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
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: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

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