I have had another idea ( ) , how about a MPPT controller for the solar cell position. A MPPT controller is yer average switch mode DC- DC converter, but it adjusts the output for maximum power, so it matches the output of a solar array (8 -33V?) to put maximum power into a 24V battery.
So you measure the output voltage and twiddle the array a bit , if the voltage rises, you twiddle it a bit more, if it falls you twiddle it a bit the other way. All done in software. Still needs the midnight reset. But if your are clever, you know that maximum output will be about midday, just run a 12 hour software timer from this point.
Frank