WebCams on the cheap
I
have been singularly disappointed with the quality:price
ratio of just about every web-oriented camera I have seen. For example,
I have a D-Link DCS-900
IP cam which I bought cheaply second-hand. While it does the job, the
image quality is fairly poor. I guess it's not really aimed at my
particular purpose, but if I'd paid full retail price for it I'd have
been pretty disappointed. I decided I needed to make something either
better or cheaper. Better has eluded me until recently, so I went for
cheaper in the interim.
The first prototype
I
bought a 'refurbished' Logitech QuickCam Pro 4000 USB WebCam
for
about $50.00 on eBay (which was pretty cheap back in 2005). I then
set about constructing a suitable outdoor housing for it. I used a
short section of 100mm PVC sewer pipe with a glue-on cap on one end and
a screw-down inspection cover (with O-ring seal) on the other. I cut a
circular hole in the centre of the cap and glued a piece of window
glass over it using silicone sealant so the camera could see out. A
short section of pipe cut at an angle and split to enable it to stretch
around the end cap made a handy shade hood. In the inspection cover
end, I drilled a large enough hole to get the USB plug through, then
slipped a rubber grommet over the cable to seal the hole against the
elements. A bit of silicone between the cable and grommet helped here
too. I used a strip of malleable metal to fashion a mounting base
inside the tube. I made its diameter slightly larger that the pipe, so
it holds in place by 'spring' pressure against the inside and meant no
holes had to be drilled to mount the camera. 
USB issues
Of course, the DCS-900 connects via the local area network, so
the camera can be located anywhere that cat5 cable can be run. The
QuickCam Pro, on the other hand, is a USB device, so is limited to
about 5 metres. This was fine while I had the camera mounted under the
verandah roof outside my study window, but not much use when I
wanted to move the camera onto the peak of the roof (about 15 metres
away by cable) for a better view. The answer to this was an Icron Rover
USB extender. These little gadgets allow USB devices to be connected
over vast distances (up to 100m) using cat5 cable. Fantastic, but at
nearly $300 they are not really in the 'cheap' category. eBay
to the rescue again, and I got a brand new set for $80.00 - a relative
bargain, but I had now spent more on the 'cheap' camera than on the
DCS-900! Still, the combination works flawlessly (within the
limitations of the camera lens), so I can't complain. And the rover
will have other uses later.Software
Numerous webcam-capture packages are out there, but I wanted something
light and simple without all the bells and whistles. A freeware
programme called FWink
(written by Canadian Chris Lundie) proved ideal. It is set to take a
photo every 5 minutes, overlay the text and upload to the web site via
FTP as well as saving a local copy. The Windows XP task scheduler is
set to start it at dawn and shut it down at dusk. The only intervention
required from me is to adjust the start/stop times every month or so as
the day length changes. I use the (free) personal edition of URobot
to grab each image and rename it according to time of capture,
so they are all ready to be made into movies each night.The movies
Another freeware programme called JPGVideo
compiles the days images into an AVI movie every night at 9:00
(courtesy of the task scheduler again). These in turn are renamed with
today's date using a command-line utility called namedate
by Swiss programmer James Green. The xxcopy
utility then copies the most recent movie to a webdrive,
which acts to map the webpages' FTP site as a local network
drive. Next, the Microsoft forfiles utility (from the old NT resource
kit) deletes any movies older than 7 days from the webdrive/server so
that I don't exceed my disk space allocation. Finally, the
now-redundant JPG files are deleted ready for the next days photos. All
this 'scripting' is done in a good old MS-DOS batch file. The only paid
software in the process is the webdrive, and it's worth it for the
flexibility that it affords in managing files on remote FTP sites. It
allows the old command line utilities to operate just like they were
acting on a local drive, plus it makes maintaining the website a breeze.