Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.27 KB

README.rst

File metadata and controls

56 lines (36 loc) · 1.27 KB

pysolcast

Solcast API

Client library for interacting with the Solcast API

Basic Usage

Get Forecasts

from pysolcast.rooftop import RooftopSite

site = RooftopSite(api_key, resource_id)
forecasts = site.get_forecasts()

Post Measurements

measurement = {
  'measurement': {
    'period_end': '2021-01-25T17:45:00.0000000Z',
    'period': 'PT15M',
    'total_power': 0.388
  }
}
results = site.post_measurements(measurement)

Full API Documentation.