Can I use Mains or generator power to run the pump during cloudy days?

Can I use Mains or generator power to run the pump during cloudy days?

The controller does not have the input for mains or generator power but the pump can be powered by means of a DC power supply that can supply the controller the correct voltage and amperage for the pump to operate efficiently.