Solar panels will work rain or shine. They will produce less energy in these conditions since the light won’t be as intense, but will function, nonetheless.