Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update post live pv docs #205

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions pv_site_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,18 +237,22 @@ def post_pv_actual(
### This route is used to input actual PV generation.

Users will upload actual PV generation
readings in kilowatts (KW) at regular intervals throughout a given day.
readings in kilowatts (kW) at intervals throughout a given day.
For example: the average power in kW every 5,10,15 or 30 minutes.

The actual_generation_kw values should be non-negative floating point numbers
(e.g., 0.0, 1.5, 10.753, etc).

#### Parameters
- **site_uuid**: The unique identifier for the site.
- **pv_actual**: The actual PV generation values for the site.
- **pv_actual_values**: The actual PV generation values for the site.
You can add one at a time or many. For example:
{
"site_uuid": "e6dc5077-0a8e-44b7-aa91-ef6084d66b81",
"pv_actual_values": [
{
"datetime_utc": "2024-02-09T17:19:35.986Z",
"actual_generation_kw": 0
"actual_generation_kw": 1.452
}
]
}
Expand Down