D-Link Forums

The Graveyard - Products No Longer Supported => IP Cameras => DCS-2332L => Topic started by: davelum on December 03, 2013, 06:32:39 PM

Title: instructions to ftp a picture based on time, and have same file name
Post by: davelum on December 03, 2013, 06:32:39 PM
Help,

For years, I've presented pictures to the public on a website, with a refresh each minute via FTP upload to a server. 

It works with a Panasonic cam, plus on my other older dlink cam I can schedule an upload of a photo via ftp each minute, and specify that the file name be the same... so the old file is overwritten by the new one.  It works great.

Have a problem with 2332.
I can get the 2332 to ftp, but can't find the setting to specify the filename to be used with every picture.

Any recommendations?  A work around?
Title: Re: instructions to ftp a picture based on time, and have same file name
Post by: Popovice on December 05, 2013, 11:42:44 AM
FTP uploading with constant file name is a very well known issue with most of the "widescreen" cameras (DCS-2132L, etc.) and to my understanding no commitment from D-Link has been obtained to fix this issue. Actually I'm personally quite happy with the DCS-2132L except for this very annoying "feature". Audio quality is at the second position on my "annoying feature list", but I could live with that if they really could fix this FTP issue...
Title: Re: instructions to ftp a picture based on time, and have same file name
Post by: RYAT3 on December 05, 2013, 08:17:29 PM
Help,

For years, I've presented pictures to the public on a website, with a refresh each minute via FTP upload to a server. 

It works with a Panasonic cam, plus on my other older dlink cam I can schedule an upload of a photo via ftp each minute, and specify that the file name be the same... so the old file is overwritten by the new one.  It works great.

Have a problem with 2332.
I can get the 2332 to ftp, but can't find the setting to specify the filename to be used with every picture.

Any recommendations?  A work around?

With some custom programming or scripting you can download the image via the jpeg.cgi http link and then upload via ftp.
Title: Re: instructions to ftp a picture based on time, and have same file name
Post by: davelum on December 10, 2013, 06:14:29 PM
Thanks to RYAT3 and Popovice for the reply.  I'm naturally disappointed that the camera that sells for 5x the price of the other is missing a very popular webcam feature.  Plus I find that the sound sputters, while the video (at 5fps) is smooth.  Time to go to Amazon and post a review!

Cheers...
Title: Re: instructions to ftp a picture based on time, and have same file name
Post by: mike5906 on April 11, 2014, 12:27:15 PM
Not being able to set the filename is a huge oversight.  Shame on DLINK!
Title: Re: instructions to ftp a picture based on time, and have same file name
Post by: Znipo on April 17, 2014, 12:25:24 PM
This is a basic key-function that you should just expect. I bought the camera to replace my old Axis webcam, and i want to use it for a weather-cam.

Unfortunately i wasn't able to find a solution with the integrated OS of the camera. After a few tests, i now solve it with my existing Synology NAS and get the picture from the jpeg.cgi http link (profile 2) and upload it after with a FTP-client.

So i wrote a small shell script which i run every 5 minutes via cron job.

Here the script, maybe someone can use it:

In this case the script is located in /volume1/Public/snapshot.sh

Code: [Select]
#!/bin/sh
#get image from camera and save as snap.jpg
wget --user=admin --password=yourpassword -O /volume1/Public/snap.jpg http://ip-of-camera/dms.jpg
#wait for 1 second
sleep 1
#upload image to ftp-Server to specific directory
/opt/bin/lftp -e 'put /volume1/Public/snap.jpg' -u ftpuser,ftppassword ftpserver/httpdocs/webcam/ <<EOF
quit 0
EOF

Of course you can change the desired directories. You need to chmod the script to 755 (executable).

There is no FTP client installed on Synology NAS that can be used from a interactive shell. You can install lftp, using ipkg. -> Instruction (http://www.ingmarverheij.com/how-to-install-an-ftp-client-on-a-synology-nas/)

I'm not familiar with linux (i hate it...), and i had to google a lot, to get the stuff running... If you need more infos, just let me know.