I was able to pull the cable a bit and routed it through the side instead of top. Now I'm not sure if the gap should be on top or bottom, camera can rotate easily this way but water can get thru?
Thanks for the image ..
Looks like you will want to adjust this setup ..
perhaps try to play with the rotation of the base of that camera ..
perhaps replace the junction box with one of those wall mount units ..
perhaps something like the PFB203W or PFB205W iirc .. you will need to check the specs .. will work better ..
Other option is to custom make a wood support and rain covering with that ..
Also one trick I like is using a short piece of conduit down from the attic to the junction box and camera ..
hint: also Drip loop ... remember drip loops when you have exposed cables going into a camera or junction box ..