Solar panels don’t generate any energy when the sun isn’t shining on them. So, during cloudy days or overnight, there is no energy output from them.
This is why it is recommended that you also have an energy storage battery fitted as part of the system. This battery will store excess energy produced in peak sunlight, so it can be used during times of no energy production.