How do I create a relationship between rotating geometry to provided shading and radiation analysis

Hello,
I have developed a parametric pathway that creates a pavilion with rotating panels. The aim is for the panels to rotate at the optimum angle to provide shading in response to solar radiation analysis. Rather than manually adjusting the angle of rotation I would like it to be defined by the radiation analysis.

I’ve had a go and creating the radiation analysis for Hanoi, Vietnam, but am struggling to remap the information so that the sunlight radiation sets the angle rotation of the panels, does anyone know who to do this?
Also, how do I set the sunlight radiation across the whole year, and at certain times of the year where a range of data is shown for the amount of radiation, at the moment the radiation analysis is only 0KwH/M2?

Please see the files attached for reference.

Please may anyone know how’s best to do this? I’d really appreciate help if possible.

Kind regards,
Anna

Pavilion screen shot 1|175x167 Pavilion screen shot 2
Pavilion screen shot 1

Final project - 6.3dm (58.4 KB) Final project - 6.gh (643.5 KB)