D-Link Forums
The Graveyard - Products No Longer Supported => IP Cameras => DCS-2332L => Topic started by: kamcgough on May 04, 2014, 03:17:52 PM
-
Okay, I bought this thing to replace the RPi/Camera solution for personal weather station webcam.
Yeah; :-[ that has been a big waste of my time. :'(
I did write some scripts to grab lo-res frames from the camera, and have the weather website pull them from my wview server. Your usage may vary, but here they are:
1. My crontab on the wview server has the following entry: */5 * * * * /home/user/webcam-script.sh
this table entry causes the shell script on the web server to run every 5 minutes (or so)
2. my webcam-script.sh looks like this:
#!/bin/bash
filename=webcam-$(date -u +"%Y%m%d_%H%M%S")UTC.jpg
cd /var/www/photos
wget --user admin --password your-camera-password -O $filename http://your.dlink.IP.Add/dms
cp -f $filename current-webcam.jpg
this shell script snippet will write a copy of the snapshot window on the camera to a web directory, with a UTC time/date code, and then create a copy of this file in a standard name so you can hard-code html, etc.