Anyway, the webcam is here (although I do not have the page set up to automatically reload). To run the webcam program, you need to set up the .webcamrc file, and then nohup webcam .webcamrc, which starts it running. The .webcamrc file was actually a bit more obscure than I expected it to be. Here I have gone thorough and marked up the lines from the default settings that needed changing.
[grab]Apparently, the infofile parameter is used for local storage; having it set just made error messages.
device = /dev/video0
text = "webcam %Y-%m-%d %H:%M:%S"
#infofile = filename
fg_red = 255cameratype is found by executing v4lctl show input at the command line. Note that there are no quotes around the cameratype, even though it includes a blank in the name.
fg_green = 255
fg_blue = 255
width = 640
height = 480
delay = 600
wait = 0
input = Camera 1
#norm = palMy first assumption was that I needed to set this to NTSC, the television standard in North America. But no, it turned out that this line needed to be commented out, instead.
rotate = 0I could not get ftp working to upload the picture to my web page, so I decided to use ssh instead. In this case, you only specify the domain name--not ftp.claytoncramer.com, which is what you would need to use ftp instead.
top = 0
left = 0
bottom = -1
right = -1
quality = 75
trigger = 0
once = 0
host = claytoncramer.com
user = USERIDObviously, you fill in your user ID and password here. I could not get the ssh key stuff working (which would have eliminated the need for the password parameter), but this does not worry me.
pass = PASSWORD
dir = public_html/Not quite sure what the tmp parameter does, but commenting it out made this work.
file = webcam.jpg
#tmp = uploading.jpg
passive = 1Probably only needed for ftp, but I was not sure. At least, it does no harm with ssh.
debug = 3Sets the level of debugging information displayed; I should probably set this back to 0.
auto = 1Causes automatic updating of the picture through either ftp or ssh.
local = 0Only set to a non-zero value if this is running on the server for the webcam page, so that you do not need to transfer the image to another computer.
ssh = 1Tells webcam to use ssh instead of ftp.
Run it in background with nohup webcam .webcamrc&
I should probably make it run automatically at startup, but it is late, and I want to get back reading this book about the Tudors.
The obscure fields are "input = cameratype" where cameratype http://www.claytoncramer.com/webcam.html is found by executing v4lctl show input at the command line.
Also obscure was the norm = pal field--just comment it out with a # at the start of the line.