openclimatefix / india-api

API India solar and wind data
2 stars 12 forks source link

Raise error if generation post > A x capacity #87

Open peterdudfield opened 3 weeks ago

peterdudfield commented 3 weeks ago

Similar to https://github.com/openclimatefix/pv-site-api/issues/191

It would be great to cause a 422 error if the generation capacity is A x the sites the capacites. A could be set by an env var, and default is 1.1

Code could go in here similar to this