Sunspot Home
Objective
Save pictures from a webcam every few minutes to build up timelapse slideshow
The Blassic basic program
This uses wget in a shell to grab the webcam picture and save it to the ramdisk
It then uses
uploadpics.sh to send the jpegs to the folder /wessex/Slideshow_eype on the sunspot website
#! /usr/sbin/blassic ' blassic /var/www/wessex/save-raw-pics.bas x=0 LABEL StartAgain pic_name$ = "swanage" pic_name$ = "goldencap" pic_name$ = "burtonbradstock" PAUSE 120000 IF x = 10 THEN x = 0 : cycle = cycle + 1 LABEL CreateSlideshow SHELL wget$ RETURN SYSTEM |
This linux bash script uses ncftp to upload the files
uploadpics.sh
#/bin/bash echo "bash is sending "$1" to sunspot folder /wessex/"$2 ncftpput -m -u $FTPU -p $FTPP $FTPS $FTPF $LOCALD |
An example of a webpage to display the list of jpegs uses javascript to build a slideshow to give a timelapse movie
<html> var number_of_image = imageArray.length; function imageItem(image_location) { function get_ImageItemLocation(imageObj) { function randNum(x, y) { function getNextImage() { function getPrevImage() { function prevImage(place) { function rotateImage(place) { // --> |
thanks to http://www.webmonkey.com/2010/02/make_a_javascript_slideshow/
Comments? email me