20080717 Brick58 Camera

From Seamonster
Jump to: navigation, search

On brick 58, in /etc/init.d/camera with a symlink to /etc/rc2.d/S99camera

The data will show up in /root/data

# Matt Heavner -- hack a grab a picture from the web cam
# 2008/07/18 

sleep(30); ## Sleep 30 seconds to make sure the network comes up
$date_time = `date +%Y%m%d%H%M%S`;
`wget`;  # CAMERA IP HERE
#`touch lastoneimage.jpg`; # FOR TESTING--swap this line w/ wget..
`mv oneshotimage.jpg /root/data/$date_time\_camera.jpg`;

Add this..

`rsync -razv --remove-sent-files -e ssh -q $date_time\_test.txt seamonster@seamonster.jun.alaska.edu:WebCams/`;