POST
Forecast a power curve

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
curve
object

The curve to forecast (send this or series): a PowerCurve { days: [{ date: "YYYY-MM-DD", valuesList: { "1": kWh, …, "24": kWh } }] } or just the list of days. Hour i is the one from i-1 to i. Any curve works: production, consumption…

Example:
series
object

Instead of curve: a series of [period, value] pairs, as returned by the Suntropy Connect energy endpoints (get_plant_energy, suntropy connect energy). Periods YYYY-MM-DD (daily) or YYYY-MM-DDTHH:00 (hourly, start of the hour); the granularity follows from them.

Example:
mode
enum<string>
default:forecast

forecast: predict what comes after the end of the curve. backtest: hide the last horizon points, predict them and compare with the real values (error, band coverage, possible anomalies).

Available options:
forecast,
backtest
granularity
enum<string>
default:day

Daily totals or hourly values.

Available options:
day,
hour
horizon
number

Points to predict. Days: 1-120 (default 7). Hours: 1-720 (default 48). With the irradiance covariate in forecast mode, 16 days at most (the weather forecast).

covariate
enum<string>

irradiance (for production curves): real and forecast solar irradiance at latitude/longitude from Open-Meteo. Default: irradiance when coordinates are given, none otherwise.

Available options:
none,
irradiance
latitude
number

Plant latitude (needed for the irradiance covariate).

longitude
number

Plant longitude (needed for the irradiance covariate).

confidenceLevel
number
default:0.8

Width of the prediction band (0.8 = p10-p90).

Required range: 0.5 <= x <= 0.98
refresh
boolean
default:false

Recalculate instead of returning the stored result (kept 7 days).

Response

data
any
required
requestId
string<uuid>
required
warning
object