need a circuit that can switch motor direction by photo or timer input
use a DPDT relay and photo-transistor made for turning on an outdoor light. You can buy them at any hardware store... DPDT relay for 110vAC at radioshack.