offshore winds create the best conditions for surfing (granted they are not terribly strong). however, to create waves, we need a storm system to blow winds "onshore", or towards us. onshore is quoted b/c it doesnt have to techinically be blowing on the beach, but just that general direction.
that or a far away system such as a hurricane.
the best case would be that as soon as the waves appear from these storms, the systems would leave and a offshore wind would appear.
If you look at the surf report for you location it tells you what direction your break facing and what the best wind and swell direction is for it.
Surfline also has a thing its either the Surf Map or Travle guide that tell the same thing plus some other important info aswell like what tide is best and other local knowledge that maybe helpful