Skip to content

Commit ef35081

Browse files
authored
Merge pull request #192 from Solcast/sdk-update-prod-2025-11-20-1698351a
SDK Update for prod on 2025-11-20
2 parents e31e905 + 41e17ae commit ef35081

File tree

9 files changed

+110
-110
lines changed

9 files changed

+110
-110
lines changed

src/Solcast/Clients/ForecastClient.cs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -377,30 +377,30 @@ public async Task<ApiResponse<ForecastsDataResponse>> GetForecastRadiationAndWea
377377
}
378378
/// <param name="latitude">The latitude of the location you request data for. Must be a decimal number between -90 and 90.</param>
379379
/// <param name="longitude">The longitude of the location you request data for. Must be a decimal number between -180 and 180.</param>
380-
/// <param name="timeZone">Timezone to return in data set. Accepted values are utc, longitudinal, or a range from -13 to 13 in 0.25 hour increments for utc offset.</param>
381-
/// <param name="hours">The number of hours to return in the response.</param>
382-
/// <param name="period">Length of the averaging period in ISO 8601 format.</param>
383-
/// <param name="depoVelocPm10">Deposition Velocity for PM10.</param>
384-
/// <param name="depoVelocPm2.5">Deposition Velocity for PM2.5.</param>
385-
/// <param name="pm10">Restricted. A list of PM10 values. Concentration of airborne particulate matter (PM) with aerodynamicdiameter less than 10 microns. [g/m^3] HSU endpoint will internally use Solcast's PM10 values tailored to your request time period.</param>
386-
/// <param name="pm2.5">Restricted. A list of PM2.5 values. Concentration of airborne particulate matter (PM) with aerodynamicdiameter less than 10 microns. [g/m^3] HSU endpoint will internally use Solcast's PM2.5 values tailored to your request time period.</param>
380+
/// <param name="timeZone">Timezone to return in data set. Accepted values are utc, longitudinal, or a range from -13 to 13 in 0.25 hour increments for utc offset. Default is utc.</param>
381+
/// <param name="hours">The number of hours to return in the response. Default is 24.</param>
382+
/// <param name="period">Length of the averaging period in ISO 8601 format. Default is PT30M.</param>
383+
/// <param name="depoVelocPm10">Deposition or settling velocity of PM2.5 particulates. [m/s]. Default is 0.0009.</param>
384+
/// <param name="depoVelocPm25">Deposition or settling velocity of PM10 particulates. [m/s]. Default is 0.004.</param>
385+
/// <param name="pm10">Restricted. A list of PM10 values. Concentration of airborne particulate matter (PM) with aerodynamicdiameter less than 10 microns. [g/m^3]. HSU endpoint will internally use Solcast's PM2.5 values tailored to your request time period.</param>
386+
/// <param name="pm25">Restricted. Concentration of airborne particulate matter (PM) with aerodynamic diameter less than 2.5 microns. [g/m^3]. HSU endpoint will internally use Solcast's PM2.5 values tailored to your request time period.</param>
387387
/// <param name="tilt">The angle (degrees) that the PV system is tilted off the horizontal. A tilt of 0 means the system faces directly upwards, and 90 means the system is vertical and facing the horizon. If you don't specify tilt, we use a default tilt angle based on the latitude you specify in your request. Must be between 0 and 90.</param>
388-
/// <param name="cleaningThreshold">Amount of daily rainfall required to clean the panels (mm). Defaults to 6.0mm</param>
389-
/// <param name="initialSoiling">Initial percentage of energy lost due to soiling at time zero in the rainfall series input. If not provided, Solcast will perform a ramp up series calculation to accurately determine this value.</param>
388+
/// <param name="cleaningThreshold">Amount of daily rainfall required to clean the panels (mm). Default is 6.0.</param>
389+
/// <param name="initialSoiling">Initial percentage of energy lost due to soiling at time zero in the rainfall series input. If not provided, Solcast will perform a ramp up series calculation to accurately determine this value. If provided must be >= 0 and < 0.3437.</param>
390390
/// <param name="rainAccumPeriod">Restricted. Specifies the period of time to sum rain fall data. Internally this value is set to 24 hours in line with the findings of https://ieeexplore.ieee.org/document/4060159 .</param>
391391
/// <param name="rainfall">Restricted. List of rainfall values. HSU endpoint will internally use Solcast's percepitation rate values tailored to your request time period.</param>
392-
/// <param name="manualWashDates">A list of ISO 8601 compliant dates or a repeating interval when manual cleaning of the panels occurred.</param>
393-
/// <param name="format">Response format</param>
392+
/// <param name="manualWashDates">A list of ISO_8601 compliant dates or a repeating interval when manual cleaning of the panels occurred. A list of dates example: [2025-01-01,2025-01-05,2025-01-10]. A repeating interval example: R3/2025-01-01T00:00:00Z/P14D. Wash dates outside of the start and end of the request are discarded.</param>
393+
/// <param name="format">Response format (json, csv). Default is json.</param>
394394
public async Task<ApiResponse<ForecastsDataResponse>> GetForecastHsu(
395395
double? latitude,
396396
double? longitude,
397397
string timeZone = null,
398398
int? hours = null,
399399
string period = null,
400400
double? depoVelocPm10 = null,
401-
double? depoVelocPm2.5 = null,
401+
double? depoVelocPm25 = null,
402402
List<double?> pm10 = null,
403-
List<double?> pm2.5 = null,
403+
List<double?> pm25 = null,
404404
double? tilt = null,
405405
double? cleaningThreshold = null,
406406
double? initialSoiling = null,
@@ -419,9 +419,9 @@ public async Task<ApiResponse<ForecastsDataResponse>> GetForecastHsu(
419419
if (hours.HasValue) parameters.Add("hours", hours.Value.ToString());
420420
if (period != null) parameters.Add("period", period.ToString());
421421
if (depoVelocPm10.HasValue) parameters.Add("depoVelocPm10", depoVelocPm10.Value.ToString());
422-
if (depoVelocPm2.5.HasValue) parameters.Add("depoVelocPm2.5", depoVelocPm2.5.Value.ToString());
422+
if (depoVelocPm25.HasValue) parameters.Add("depoVelocPm25", depoVelocPm25.Value.ToString());
423423
if (pm10 != null) parameters.Add("pm10", pm10.ToString());
424-
if (pm2.5 != null) parameters.Add("pm2.5", pm2.5.ToString());
424+
if (pm25 != null) parameters.Add("pm25", pm25.ToString());
425425
if (tilt.HasValue) parameters.Add("tilt", tilt.Value.ToString());
426426
if (cleaningThreshold.HasValue) parameters.Add("cleaningThreshold", cleaningThreshold.Value.ToString());
427427
if (initialSoiling.HasValue) parameters.Add("initialSoiling", initialSoiling.Value.ToString());
@@ -462,7 +462,7 @@ public async Task<ApiResponse<ForecastsDataResponse>> GetForecastHsu(
462462
}
463463
catch (HttpRequestException httpEx)
464464
{
465-
var paramDetails = "latitude=" + latitude + ", " + "longitude=" + longitude + ", " + "timeZone=" + timeZone + ", " + "hours=" + hours + ", " + "period=" + period + ", " + "depoVelocPm10=" + depoVelocPm10 + ", " + "depoVelocPm2.5=" + depoVelocPm2.5 + ", " + "pm10=" + pm10 + ", " + "pm2.5=" + pm2.5 + ", " + "tilt=" + tilt + ", " + "cleaningThreshold=" + cleaningThreshold + ", " + "initialSoiling=" + initialSoiling + ", " + "rainAccumPeriod=" + rainAccumPeriod + ", " + "rainfall=" + rainfall + ", " + "manualWashDates=" + manualWashDates + ", " + "format=" + format;
465+
var paramDetails = "latitude=" + latitude + ", " + "longitude=" + longitude + ", " + "timeZone=" + timeZone + ", " + "hours=" + hours + ", " + "period=" + period + ", " + "depoVelocPm10=" + depoVelocPm10 + ", " + "depoVelocPm25=" + depoVelocPm25 + ", " + "pm10=" + pm10 + ", " + "pm25=" + pm25 + ", " + "tilt=" + tilt + ", " + "cleaningThreshold=" + cleaningThreshold + ", " + "initialSoiling=" + initialSoiling + ", " + "rainAccumPeriod=" + rainAccumPeriod + ", " + "rainfall=" + rainfall + ", " + "manualWashDates=" + manualWashDates + ", " + "format=" + format;
466466
var status = httpEx.StatusCode.HasValue ? ((int)httpEx.StatusCode).ToString() : "unknown";
467467
var content = httpEx.Data.Contains("Content") ? httpEx.Data["Content"] : "no content";
468468
throw new Exception($@"HTTP error in GetForecastHsu
@@ -473,24 +473,24 @@ public async Task<ApiResponse<ForecastsDataResponse>> GetForecastHsu(
473473
}
474474
catch (Exception ex)
475475
{
476-
var paramDetails = "latitude=" + latitude + ", " + "longitude=" + longitude + ", " + "timeZone=" + timeZone + ", " + "hours=" + hours + ", " + "period=" + period + ", " + "depoVelocPm10=" + depoVelocPm10 + ", " + "depoVelocPm2.5=" + depoVelocPm2.5 + ", " + "pm10=" + pm10 + ", " + "pm2.5=" + pm2.5 + ", " + "tilt=" + tilt + ", " + "cleaningThreshold=" + cleaningThreshold + ", " + "initialSoiling=" + initialSoiling + ", " + "rainAccumPeriod=" + rainAccumPeriod + ", " + "rainfall=" + rainfall + ", " + "manualWashDates=" + manualWashDates + ", " + "format=" + format;
476+
var paramDetails = "latitude=" + latitude + ", " + "longitude=" + longitude + ", " + "timeZone=" + timeZone + ", " + "hours=" + hours + ", " + "period=" + period + ", " + "depoVelocPm10=" + depoVelocPm10 + ", " + "depoVelocPm25=" + depoVelocPm25 + ", " + "pm10=" + pm10 + ", " + "pm25=" + pm25 + ", " + "tilt=" + tilt + ", " + "cleaningThreshold=" + cleaningThreshold + ", " + "initialSoiling=" + initialSoiling + ", " + "rainAccumPeriod=" + rainAccumPeriod + ", " + "rainfall=" + rainfall + ", " + "manualWashDates=" + manualWashDates + ", " + "format=" + format;
477477
throw new Exception($@"Unhandled error in GetForecastHsu
478478
Parameters: {paramDetails}
479479
Error: {ex.Message}", ex);
480480
}
481481
}
482482
/// <param name="latitude">The latitude of the location you request data for. Must be a decimal number between -90 and 90.</param>
483483
/// <param name="longitude">The longitude of the location you request data for. Must be a decimal number between -180 and 180.</param>
484-
/// <param name="timeZone">Timezone to return in data set. Accepted values are utc, longitudinal, or a range from -13 to 13 in 0.25 hour increments for utc offset.</param>
485-
/// <param name="hours">The number of hours to return in the response.</param>
486-
/// <param name="period">Length of the averaging period in ISO 8601 format.</param>
487-
/// <param name="cleaningThreshold">Amount of daily rainfall required to clean the panels (mm)</param>
484+
/// <param name="timeZone">Timezone to return in data set. Accepted values are utc, longitudinal, or a range from -13 to 13 in 0.25 hour increments for utc offset. Default is utc.</param>
485+
/// <param name="hours">The number of hours to return in the response. Default is 24.</param>
486+
/// <param name="period">Length of the averaging period in ISO 8601 format. Default is PT30M.</param>
487+
/// <param name="cleaningThreshold">Amount of daily rainfall required to clean the panels (mm). Default is 6.0.</param>
488488
/// <param name="soilingLossRate">Percentage of energy lost due to one day of soiling.</param>
489489
/// <param name="gracePeriod">Number of days after a rainfall event when it’s assumed the ground is damp, and so it’s assumed there is no soiling.</param>
490490
/// <param name="maxSoiling">Maximum percentage of energy lost due to soiling. Soiling will build up until this value.</param>
491-
/// <param name="initialSoiling">Initial percentage of energy lost due to soiling at time zero in the rainfall series input.</param>
492-
/// <param name="manualWashDates">A list of ISO 8601 compliant dates or a repeating interval when manual cleaning of the panels occurred.</param>
493-
/// <param name="format">Response format</param>
491+
/// <param name="initialSoiling">Initial percentage of energy lost due to soiling at time zero in the rainfall series input. If not provided, Solcast will perform a ramp up series calculation to accurately determine this value.</param>
492+
/// <param name="manualWashDates">A list of ISO_8601 compliant dates or a repeating interval when manual cleaning of the panels occurred. A list of dates example: [2025-01-01,2025-01-05,2025-01-10]. A repeating interval example: R3/2025-01-01T00:00:00Z/P14D. Wash dates outside of the start and end of the request are discarded.</param>
493+
/// <param name="format">Response format (json, csv). Default is json.</param>
494494
public async Task<ApiResponse<ForecastsDataResponse>> GetForecastKimber(
495495
double? latitude,
496496
double? longitude,

0 commit comments

Comments
 (0)