Solar panel will work even in cloudy weather. However, there will be solar battery which will provide you 18 to 24 hours backup. But the power generated by solar panel will be lower than its original capacity in cloudy days.