rany2 / open-meteo-solar-forecast

Python module that uses Open-Meteo to get solar production forecast
MIT License
16 stars 3 forks source link

Allow specifying horizon (shadow because of hills etc.) #23

Open bagbag opened 4 days ago

bagbag commented 4 days ago

Unfortunately the radiation data of open-meteo does not take into account the horizon, at least it didn't in my comparisons:

Real data of my plant on a perfect day in june: Screenshot From 2024-10-14 01-46-53

Radiation data (GTI) of open-meteo on same day: Screenshot From 2024-10-14 01-46-36

Being able to specify at which azimuth and angle the sun is behind something would be very helpful. For e.g. at my location I have full shadow 2 to 3 hours before sunset because I live directly at the bottom of a hill.

It could be entered like it is done in solXpect (last image).

The icing on the cake would be gathering that information automatically, for example via PVGIS from the European Comission: Horizon profile tool

In the interactive tool you can view the horizon profile (this example is for my location): Screenshot From 2024-10-14 01-43-25

They also provide an API (free). Both are linked in the link above. Example API call: https://re.jrc.ec.europa.eu/api/printhorizon?lat=45&lon=8&outputformat=json

Thank you for your work!

rany2 commented 1 day ago

I'm not sure whether playing with the damping parameters would help you in this case, but it's worth the shot for the time being.