D-Link Forums

The Graveyard - Products No Longer Supported => IP Cameras => DCS-942L => Topic started by: Zahackn on January 02, 2015, 07:22:13 AM

Title: Disable Recording/Motion Detection via Script?
Post by: Zahackn on January 02, 2015, 07:22:13 AM
Is there a chance to control the Webcam via script?

I am using a Home Automation System and I want to send an disable command when I am at home and reenable it when i am not at home.
Title: Re: Disable Recording/Motion Detection via Script?
Post by: maat on April 23, 2015, 11:50:37 PM
I also am interested in this function.
Title: Re: Disable Recording/Motion Detection via Script?
Post by: gerardosamara on November 21, 2015, 07:54:46 AM
This is an old post but  still valid.

Based on internet search , I was abe to ( perhaps ) find the HTTP command to enable/disable motion detetion from an App :

http://IP camera:port/config/motion.cgi?enable=yes&user=xxx&password=xxx
http://IP camera:port/config/motion.cgi?enable=no&user=xxx&password=xxx

Bu the App replies --->  Please enter correct account/password.

The proble is that them API document for this 942L amera is unavailable in the Dlink support site as per my search.

Please any advice for the correct synax ?
Thanks





Title: Re: Disable Recording/Motion Detection via Script?
Post by: gerardosamara on November 22, 2015, 08:21:00 AM
Found the correct syntax pour the camera user identification :

http://USER:PSSWORD@IP CAM:PORT/config/motion.cgi?enable=yes  (enable)
http://USER:PSSWORD@IP CAM:PORT/config/motion.cgi?enable=no (disable)
Title: Re: Disable Recording/Motion Detection via Script?
Post by: maat on January 28, 2016, 03:59:15 AM
FINALLY i found all the correct sintaxt thanks to this forum (and some work).

Motion
menu:
http://USER:PSSWORD@IP CAM:PORT/eng/admin/mot_detect.cgi

enable motion:
http://USER:PSSWORD@IP CAM:PORT/eng/admin/mot_detect.cgi?enable=1

disable motion:
http://USER:PSSWORD@IP CAM:PORT/eng/admin/mot_detect.cgi?enable=0

Send Snapshot
menu
http://USER:PSSWORD@IP CAM:PORT/eng/admin/adv_snapshot.cgi

enable snapshot
http://USER:PSSWORD@IP CAM:PORT/eng/admin/adv_snapshot.cgi?enable=1

disable snapshot
http://USER:PSSWORD@IP CAM:PORT/eng/admin/adv_snapshot.cgi?enable=0

Send Videoclip
menu
http://USER:PSSWORD@IP CAM:PORT/eng/admin/adv_videoclip.cgi

enable sending videoclip
http://USER:PSSWORD@IP CAM:PORT/eng/admin/adv_videoclip.cgi?enable=1

disable sending videoclip
http://USER:PSSWORD@IP CAM:PORT/eng/admin/adv_videoclip.cgi?enable=0

All working perfectly, also on smartphone :)
Now... how i can make a beautiful app that include all commands?

Thanks forum

EDIT:
A dedicated app is fine but links in smartphone home also works well ;)
Title: Re: Disable Recording/Motion Detection via Script?
Post by: wxppf on April 11, 2016, 02:07:26 AM
Luv to see an app who can handle this.. pls hook me up to test??
Title: Re: Disable Recording/Motion Detection via Script?
Post by: winny72 on June 23, 2017, 12:10:52 AM
I use the command for disable motion detection but i have this response:

The request is forbidden.
 :-[
Title: Re: Disable Recording/Motion Detection via Script?
Post by: FurryNutz on June 23, 2017, 11:19:26 AM
Possible that it's not supported or the behavior was removed in recent FW?
Title: Re: Disable Recording/Motion Detection via Script?
Post by: maat on July 05, 2017, 11:31:40 AM
This system is not more supported... i try other way
Title: Re: Disable Recording/Motion Detection via Script?
Post by: FurryNutz on July 06, 2017, 09:31:29 AM
Let us know if you find a different way...Good Luck.