Skip to content

Add premium site measurement endpoints - #60

Merged
nik-solcast merged 5 commits into
Solcast:mainfrom
nik-solcast:feature/site-measurements
Oct 1, 2026
Merged

nik-solcast merged 5 commits into
Solcast:mainfrom
nik-solcast:feature/site-measurements

Conversation

@nik-solcast

Copy link
Copy Markdown
Collaborator

Summary

  • Add Premium PV and Premium Wind site measurement endpoints.
  • Support site and sub-unit create, get, and delete operations.
  • Add JSON request-body support to the SDK client.
  • Add documentation, MkDocs navigation, and request-level tests.

Validation

  • uv run --group test pytest -q tests/test_site_measurements.py tests/test_client.py
  • 11 tests passed
  • uv run --group docs mkdocs build --strict
  • Documentation build passed

Comment thread solcast/pv_power_site_measurements.py Resolved
Comment thread solcast/pv_power_site_measurements.py Resolved
Comment thread solcast/wind_power_site_measurements.py Resolved
Comment thread solcast/pv_power_site_measurements.py Resolved
Comment thread solcast/pv_power_site_measurements.py Resolved
Comment thread solcast/_site_measurements.py Resolved
Comment thread docs/wind_power_site_measurements.md Resolved
Comment thread docs/pv_power_site_measurements.md Resolved
"source": [
"Use the same pattern with `create_pv_sub_unit_site_measurements` for inverter-level data. Each sub-unit record must include a `sub_unit` label.\n",
"\n",
"## Download All Pages\n",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better heading would be "Download All Pages of Site Measurements"

Can we use the pandas form of the output results? So

page_records = res.to_pandas()
site_results.append(page_records)
...
if site results:
    site_df = pd.concat(site_results)

@nik-solcast
nik-solcast merged commit 9f770c9 into Solcast:main Oct 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants