Unfortunately you just have to plan ahead for all options. If you need it to be sunny outside then plan for that, but take some umbrellas and think, does the script Need it to be sunny or does it not matter?
That said, it is preferable to get what you want, but you really just have to cross your fingers on this one. Allow a shooting bracket, a series of days where you are available to shoot so if one gets rained out then you can use one of the spares. If it's cloudy or the light is a different look from what you want, you can always post-prod it easily.
Hope this helps :)