Automating skylights with blinds to block direct sun - eviltoast

Looking for a solution on how to determine when to close and open skylight blinds. I can just do hours of the day but would like it to be a bit more intelligent.

Anyone looked at using something like the math used for solar panels? I was thinking that when max solar power was generated in the summer that is when they are closed to keep heat out.

Ideas?