• July 25, 2017, 05:41:22 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.

Pages: [1] 2

Author Topic: Api control or change settings with script  (Read 7265 times)

Pain123

  • Level 1 Member
  • *
  • Posts: 1
Api control or change settings with script
« on: August 26, 2014, 06:48:00 AM »

Hello! I'm searching for a way to enable/disable motion detection or email notification without using web Ui. Is there a way to do this? I have found a document for Api control but cant get it to work. The easy way to do it by http request call, or making a script and use Get/Post to change settings.
I have dcs-932l, dcs-933l and dcs-5020.

/Andreas
« Last Edit: August 26, 2014, 06:53:03 AM by Pain123 »
Logged

josepa2mander

  • Level 1 Member
  • *
  • Posts: 3
Re: Api control or change settings with script
« Reply #1 on: November 17, 2014, 02:11:21 PM »

This is a very interesting question! Did you find a way to enable disable the motion detection with http request (GET/POST)?
I'm very interesting in that!
I've found some request that work but not the motion detection activation!  :(
Code: [Select]
http://192.168...yourIP/motion.cgi
http://192.168...yourIP/image.jpg
http://192.168...yourIP/config/stream_info.cgi
http://192.168...yourIP/common/info.cgi
Logged

HWAM

  • Level 2 Member
  • **
  • Posts: 80
Re: Api control or change settings with script
« Reply #2 on: January 12, 2015, 11:56:56 PM »

Is possible yes!!! Here you go:

Led On:
http://admin:PW@URL-CAM:port/setDayNightMode?DayNightMode=3&ReplySuccessPage=night.htm&ReplyErrorPage=errrnght.htm&ConfigDayNightMode=Save
/setDayNightMode


Led Off:
http://admin:PW@URL-CAM:port/setDayNightMode?DayNightMode=2&ReplySuccessPage=night.htm&ReplyErrorPage=errrnght.htm&ConfigDayNightMode=Save
/setDayNightMode

Motion On:
http://admin:PW@URL-CAM:port/setSystemMotion?ReplySuccessPage=motion.htm&ReplyErrorPage=motion.htm&MotionDetectionEnable=1&ConfigSystemMotion=Save
/setSystemMotion

Motion Off:
http://admin:PW@URL-CAM:port/setSystemMotion?ReplySuccessPage=motion.htm&ReplyErrorPage=motion.htm&MotionDetectionEnable=0&ConfigSystemMotion=Save

admin is account
PW = password
URL-CAM = IP Cam web address
port = port number

If you need info, please ask!!

Good luck, I use this for a long time now. Perfect!!

Logged

josepa2mander

  • Level 1 Member
  • *
  • Posts: 3
Re: Api control or change settings with script
« Reply #3 on: January 13, 2015, 12:22:34 AM »

Thank you very much HWAM!
Tested and it work, this is Christmas for me! :)
Logged

CF76

  • Level 1 Member
  • *
  • Posts: 6
Re: Api control or change settings with script
« Reply #4 on: March 11, 2015, 09:03:11 AM »

Many thanks HWAM ;D ;D
can you post also the Api control for email Time Schedule for picture and video?

Thanks
Logged

HWAM

  • Level 2 Member
  • **
  • Posts: 80
Re: Api control or change settings with script
« Reply #5 on: March 14, 2015, 12:32:13 AM »

I don't have the command but I will try to find it asap.

Also very useful.
Logged

HWAM

  • Level 2 Member
  • **
  • Posts: 80
Re: Api control or change settings with script
« Reply #6 on: March 16, 2015, 04:15:34 AM »

I found the switches to enable / disable the images and video emailing. But watch the source html page of the CAM and you can find more.

Enable the emailing of images to an email account = Yes

http://admin:PW@URL-CAM:port/setSystemEmail?ReplySuccessPage=email.htm&ReplyErrorPage=errreml.htm&EmailScheduleEnable=1&ConfigSystemEmail=Save

Enable the emailing of images to an email account = No

http://admin:PW@URL-CAM:port/setSystemEmail?ReplySuccessPage=email.htm&ReplyErrorPage=errreml.htm&EmailScheduleEnable=0&ConfigSystemEmail=Save

Enable the emailing of video clip to an email account = Yes

http://admin:PW@URL-CAM:port/setSystemEmail?ReplySuccessPage=email.htm&ReplyErrorPage=errreml.htm&EmailScheduleEnableVideo=1&ConfigSystemEmail=Save

Enable the emailing of video clip to an email account = No

http://admin:PW@URL-CAM:port/setSystemEmail?ReplySuccessPage=email.htm&ReplyErrorPage=errreml.htm&EmailScheduleEnableVideo=0&ConfigSystemEmail=Save

Success.
Logged

CF76

  • Level 1 Member
  • *
  • Posts: 6
Re: Api control or change settings with script
« Reply #7 on: April 14, 2015, 01:07:00 AM »

Thanks again HWAM. can you explain how can you write the api command looking the html source code?
I just buy the new 935L and I want to do the same you did with 932/3L.
can you help me?
thanks a lot
Logged

HWAM

  • Level 2 Member
  • **
  • Posts: 80
Re: Api control or change settings with script
« Reply #8 on: April 14, 2015, 01:44:35 AM »

You must use the "View page source" option (right-click-mouse) in the Internet Explorer. With this option you see the html source and all the parameters. Just a matter of searching for the right information. Hard to explain.

Are you satisfied with the 935L?

Success.
Logged

CF76

  • Level 1 Member
  • *
  • Posts: 6
Re: Api control or change settings with script
« Reply #9 on: April 14, 2015, 06:02:06 AM »

hard to explain and hard to understand...

I write a small comment on 935L page.
Logged

HWAM

  • Level 2 Member
  • **
  • Posts: 80
Re: Api control or change settings with script
« Reply #10 on: April 14, 2015, 06:05:13 AM »

Search for "FORM ACTION" in the source, there you can find the parameters:

<FORM ACTION="/setSystemEmail" METHOD="POST" autocomplete="off">
        <input type="hidden" name="ReplySuccessPage" value="email.htm">
        <input type="hidden" name="ReplyErrorPage" value="errreml.htm">
        <input type="hidden" id="EmailScheduleEnable" name="EmailScheduleEnable" value="0">
        <input type="hidden" id="EmailScheduleDay" name="EmailScheduleDay" value="0">
        <input type="hidden" id="EmailScheduleEnableVideo" name="EmailScheduleEnableVideo" value="0">
        <input type="hidden" id="EmailScheduleDayVideo" name="EmailScheduleDayVideo" value="0">
        <div align=center>
Logged

bowmansupport

  • Level 1 Member
  • *
  • Posts: 4
Re: Api control or change settings with script
« Reply #11 on: December 05, 2016, 12:22:30 PM »

Hey HWAM, I'm looking for something similar. I need to be able to mute/unmute the mic on the fly. Can you assist?
Logged

bowmansupport

  • Level 1 Member
  • *
  • Posts: 4
Re: Api control or change settings with script
« Reply #12 on: December 05, 2016, 01:37:58 PM »

I have figured it out!

Mic off = http://ADMIN:PW@IPADDR/cgi/admin/audiovideo.cgi?MicEnable=0
Mic on = http://ADMIN:PW@IPADDR/cgi/admin/audiovideo.cgi?MicEnable=1
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 42589
  • D-Link Global Forum Moderator
    • New DIR-890L Router with SmartConnect™ Technology
Re: Api control or change settings with script (HOW TO)
« Reply #13 on: December 05, 2016, 01:59:55 PM »

Thank you for posting the info. Glad you got it working.

Enjoy.  ;)
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

sierratango

  • Level 1 Member
  • *
  • Posts: 1
Re: Api control or change settings with script
« Reply #14 on: January 01, 2017, 03:13:36 PM »

In the latest DCS-932L firmware (1.14.04), direct access to these URLs are no longer possible and results in the message: "The request is forbidden."

Has anyone figured out a way around this that they could share? I have tried downgrading the firmware but then you cannot use the mydlink remote viewing service.
Logged
Pages: [1] 2