This script is capable to executed from cron, capturing camera image, copying locally and uploading that to a given FTP server.
Sunset - sunrise follower long time exposure weather cam from a Canon PowerShot.
wget http://www.risacher.org/sunwait/sunwait-20041208.tar.gz
tar xzvf sunwait-20041208.tar.gz
cd sunwait-20041208
make
sudo install sunwait /usr/bin/sunwait
sudo apt-get install gphoto2
Then running the script first it calculates sunset and sunrise and decide to run the camera in day mode (Auto) or in long exposure (Tv) mode.
Mine tested with Canon PowerShot IS5, it has Auto and Tv modes, it has to be programmed in gphoto2 --config
menu.