Repository navigation
feat: implements per-site time series and clearsky for sites_v1 - #399
Open
suvanbanerjee wants to merge 11 commits into
Open
suvanbanerjee wants to merge 11 commits into
suvanbanerjee wants to merge 11 commits into
Conversation
suvanbanerjee
added this pull request to stack #397
September 21, 2026 10:07
suvanbanerjee
force-pushed
the
feat/per-site-v1
branch
from
September 21, 2026 10:08
2c20ffc to
e7a7327
Compare
suvanbanerjee
marked this pull request as ready for review
September 23, 2026 11:19
suvanbanerjee
force-pushed
the
feat/per-site-v1
branch
from
September 23, 2026 11:32
cbb6a54 to
cfdc46b
Compare
…try configuration
suvanbanerjee
force-pushed
the
feat/per-site-v1
branch
from
October 8, 2026 04:42
cfdc46b to
d7c9f27
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
Implements per-site time series for Sites v1
Four routes, all under
/v1/{country}/{source}/sites/:GET /{site_id}/forecastGET /{site_id}/generationPOST /{site_id}/generationGET /{site_id}/clearskypvlib, no platform callGET /clearskytimes_utcNote
Default Observer and Forecaster Check the vals and behavior of defaults and confirm them once
A site with no forecast is
200withvalues: []capacity_kWis the site's own capacity, not the values'. A stored0meansdeactivated or not yet commissioned, and must read as such rather than as "no data".
How Has This Been Tested?
Known Issue, not fixed here
Newly created sites can return a 404 when requesting their forecast immediately, because the DP checks whether the site existed at the start of the requested window.
The same happens when requesting history from before the site was created. These should return an empty list instead. This may be an issue in DP, so it has not been worked around in the api.
cc @devsjc
Related - openclimatefix/client-private#573
Checklist: