Learn how to setup the input and output of the circuit. Controlling the circuit with a switch or a photo resistor. This is an ideal mini project for anyone wanting to control this with your Raspberry PI.
from Raspberry PI 4 or Arduino or any similar device which has General Purpose Input Output facilities (GPIO). Simple python script can be adjust for timing.