I’ve switched to using metal enclosures for my Raspberry Pi webcams, here are some photos of work in progress.
There is more room and I expect long term durability.
I’ve also experimented with raspistill switches too. Here is my current command line for a webcam aimed at a freeway intersection a mile away. I’m using only a portion of the sensor to get smaller file sizes that include only the area of interest. It’s like a pre-emptive digital zoom.
raspistill --nopreview -hf -vf -w 1024 -h 576 -roi 0.4,0.4,0.40,0.40 -q 75 -o /tmp/stream/pic.jpg -tl 20 -t 0 -th 0:0:0 &
The photo with a zoom lens was a failed experiment in optical zoom.