Controller for a sprinkler that takes into account the past week's rainfall.