Motion Algorithm to Ignore Blowing Leaves/Shadows/Bugs/Snow/Rain/Headlights/Flags

Oh, those damn cobwebs. About every month or so I get one across one of my cameras. I got out to clean it off and I can’t see it so I wave a brush around the entire area looking like an idiot with the hopes that I get it.