D-Link Forums
D-Link IP Cameras for Home => DCS series Network Cameras => Topic started by: skifun 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)
(http://i45.photobucket.com/albums/f78/antonis71/Others/snapshot.jpg)
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 ?
-
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
-
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 :'(
-
Added the following line in my cpanel cron job and everything is absolutely ok, bypassing firmware's stupidity.
cp -f -T $(find /home/username/public_html/directory -name filename* | sort | tail -n1) /home/username/public_html/filename
hope that helps.
-
I've this script in my cron.hourly directory...
#!/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.