#!/bin/bash # # Example script for updating two webcam images using fswebcam. # Called from crontab once every minute. # Capture an image from the tuner (TV), frequency 671.25MHz. Adjusts colour # to maximum and lowers contrast a bit. fswebcam -q \ -d /dev/video0 -i 0 -t 1 -f 671.25 --set colour=100% --set contrast=40% \ --title "TestCam 1" ~/.webcam/webcam-01.jpeg # Captures an image from composite input. Increase colour slightly and lower # contrast a bit. Changes the banner colour to semi-transparent black. fswebcam -q \ -d /dev/video0 -i 1 --set colour=20 --set contrast=-20 \ --banner-colour "#44000000" --line-colour "#FF000000" \ --title "TestCam 2" --subtitle "FireStorm.cx" \ ~/.webcam/webcam-02.jpeg # Upload our two images to the webserver via FTP. ncftpput -f ~/.webcam/webcam-login -t 30 /www/webcam ~/.webcam/webcam-*.jpeg