• October 20, 2020, 01:01:13 PM
  • 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: Possibly bug with snapshot on ftp server - DCS-2121  (Read 9475 times)

skifun

  • Level 1 Member
  • *
  • Posts: 3
Possibly bug with snapshot on ftp server - DCS-2121
« on: January 09, 2010, 09:25:09 AM »

Hello there,

recently I bought a Dlink DCS-2121 web camera in order to upload a snapshot at web server. This cam has not an option (I changed lot of firmwares) to create an single only file and updating this one, but continuously uploading in directories , snapshots with filenames based on time, date.

For example today the filename could be  _20100109_185516.jpg or If I used a prefix test for example, the filename should be test_20100109_185516.jpg.

I tried just a few minutes ago and wrote on web server this folder:
/20100109/19/
with images _20100109_190452.jpg and _20100109_190752.jpg (180 sec is the Interval)

Here the menu it provides (with firmware 1.04, 3227)
 

There is also another way, with direct url with the help of dlinkddns (http://cam:cam@name.dlinkddns.com/image/jpeg.cgi) but it's a bad idea exposing your password over the net.

The other way I am working on, but still have not find any solution is to create a cron command in linux finding the newest file from directories and copy to a new location every 3 minutes let's say.

Is there any way to solve that bug ?
Logged

philoustetou

  • Level 1 Member
  • *
  • Posts: 1
Re: Possibly bug with snapshot on ftp server - DCS-2121
« Reply #1 on: January 09, 2010, 03:02:40 PM »

Hi,
I cant help you but where do you find this firmware ?
I don't find it on http://tsd.dlink.com.tw/ or http://www.dlink.fr/
I hope to receive my DCS 212 on next tuesday and I want to do the same thing on my meteo website. If you resolve your problem tell me (of course I do the same thing for you  ;) )

http://philippe.souquieres.free.fr/meteo/

Regards

Philippe
Logged

skifun

  • Level 1 Member
  • *
  • Posts: 3
Re: Possibly bug with snapshot on ftp server - DCS-2121
« Reply #2 on: January 10, 2010, 12:25:49 AM »

Here it is: ftp://ftp.dlink.co.uk/dcs_cameras/dcs-2121/dcs-2121_fw_1.04_3227.zip

Of course If I find something I'll let you know. Till now I have not find anything  :'(
Logged

skifun

  • Level 1 Member
  • *
  • Posts: 3
Re: Possibly bug with snapshot on ftp server - DCS-2121
« Reply #3 on: January 10, 2010, 01:43:25 PM »

Added the following line in my cpanel cron job and everything is absolutely ok, bypassing firmware's stupidity.

Code: [Select]
cp -f -T $(find /home/username/public_html/directory -name filename* | sort | tail -n1) /home/username/public_html/filename
hope that helps.
Logged

nandelbosc

  • Level 1 Member
  • *
  • Posts: 1
Re: Possibly bug with snapshot on ftp server - DCS-2121
« Reply #4 on: April 09, 2010, 04:03:54 AM »

I've this script in my cron.hourly directory...

Code: [Select]
#!/bin/bash
cd ~/capture/

wget http://USER:PASS@IP:PORT/image/jpeg.cgi

mv ~/capture/jpeg.cgi ~/capture/`date +%d-%m-%Y_%H-%M-%S`.jpg

/usr/bin/sendEmail -f FROM_ADDRESS -t TO_ADDRESS -u SUBJECT -m BODY -a ~/capture/*.jpg -s gmail-smtp-in.l.google.com:25 -xu MYUSER@gmail.com -xp MYPASS

rm ~/capture/*.jpg

You need to install sendEmail.
Logged