• November 02, 2024, 11:30:18 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: instructions to ftp a picture based on time, and have same file name  (Read 9464 times)

davelum

  • Level 1 Member
  • *
  • Posts: 3

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?
Logged

Popovice

  • Level 2 Member
  • **
  • Posts: 51
Re: instructions to ftp a picture based on time, and have same file name
« Reply #1 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...
Logged

RYAT3

  • Level 10 Member
  • *****
  • Posts: 2254
Re: instructions to ftp a picture based on time, and have same file name
« Reply #2 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.
Logged

davelum

  • Level 1 Member
  • *
  • Posts: 3
Re: instructions to ftp a picture based on time, and have same file name
« Reply #3 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...
Logged

mike5906

  • Level 1 Member
  • *
  • Posts: 2
Re: instructions to ftp a picture based on time, and have same file name
« Reply #4 on: April 11, 2014, 12:27:15 PM »

Not being able to set the filename is a huge oversight.  Shame on DLINK!
Logged

Znipo

  • Level 1 Member
  • *
  • Posts: 1
Re: instructions to ftp a picture based on time, and have same file name
« Reply #5 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

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.
« Last Edit: April 18, 2014, 04:39:47 AM by Znipo »
Logged
...me ...1337!