You could use a real-time clock or a light sensor of some kind to tell when to switch them on. The Pi has neither of these and so they would have to be added via the correct interface. Have a look at this thread: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=31&t=23949&p=222082&hilit=LDR#p22208...