• April 12, 2025, 02:20:12 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: Sharing (SMB and FTP) Doesn't work!-What can we do?  (Read 2701 times)

kamcgough

  • Level 1 Member
  • *
  • Posts: 2
Sharing (SMB and FTP) Doesn't work!-What can we do?
« 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.
Logged