/solcast

Primary LanguagePythonApache License 2.0Apache-2.0

pysolcast

Build Status CodeCov pypi Maintainability

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.