Company
Update company default settings
Updates default settings for your company. Requires Admin role. Default Settings are prediction input values customized per company.
PUT
/
Company
/
DefaultSettings
Update company default settings
curl --request PUT \
--url https://api.plantpredict.terabase.energy/Company/DefaultSettings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"environmentalConditions": {
"id": 190,
"monthlySoilingLoss": 2,
"monthlyAlbedo": 0.2
},
"powerPlantBuilder": {
"acCollectionLoss": 1,
"dasLoad": 800,
"coolingLoad": 0,
"transformerHighSideVoltage": 34.5,
"transformerNoLoadLoss": 0.2,
"transformerFullLoadLoss": 0.7,
"powerFactor": 1,
"inverter_Id": 8279,
"dcacRatio": 1.2,
"dcWiringLossAtSTC": 1.5,
"dcHealth": 1,
"trackerLoadLoss": 2.028,
"minimumTrackingLimitAngleD": -60,
"maximumTrackingLimitAngleD": 60,
"structureShading": 5,
"module_Id": 224,
"dcFieldTrackingTypeEnum": 1,
"dcFieldBacktrackingType": 1,
"tiltAngle": null,
"gcr": 40,
"moduleOrientation": 1,
"azimuth": 180,
"modTempModel": 0,
"setback": 6.5,
"northSouthRoadWidth": 6.096011996927617,
"eastWestRoadWidth": 6.096011996927617
},
"simulationSettings": {
"errorModelAcc": 2.9,
"errorSensAcc": 5,
"errorIntAnnVar": 3,
"errorMonAcc": 2,
"errorSpaVar": 2,
"transpositionModel": 1,
"diffuseDirectDecompModel": 3,
"useMeteoDni": false,
"airMassModel": 0,
"soilingModel": 0,
"modTempModel": 0,
"spectralShiftModel": 2,
"incAngleModel": 5,
"directBeamShadingModel": 5,
"degradationModel": 0,
"diffuseShadingModel": 1,
"defaultDegradation": 0,
"linearDegradationRate": 0.5,
"firstYearDegradation": false
},
"weatherAPISettings": {
"meteonormSettings": {
"key": null
},
"cprSettings": {
"apiKey": "wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth",
"userName": null,
"password": null,
"licenseNumber": null
},
"solarGISSettings": {
"key": "gkvf7nN9IhjcjP9Jp7Lf",
"tmyKey": "MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9",
"version": 2
}
},
"essSettings": {
"factor": 0.9,
"usableEnergyCapacityCalendarDeg": 0.2,
"usableEnergyCapacityCycleDeg": 0.005,
"roundtripDCEfficiencyYear1": 95,
"roundtripDCEfficiencyCalendarDeg": 0.05,
"roundtripDCEfficiencyCycleDeg": 0.0002,
"hvacNoLoadLoss": 1.5,
"hvacFullLoadLoss": 10,
"mvNoLoadLoss": 0.2,
"mvFullLoadLoss": 0.7,
"mvCapacity": null,
"inverterEfficiency": 97,
"chargeAlgorithm": 0
},
"financialModelParameters": {
"bosInput": 0.5,
"developmentCostPerWatt": 0.1,
"moduleCostPerWatt": 0.3,
"itcPercentage": 26,
"yearOneEnergyAdjustmentPercentage": 0,
"ppaPrice": 25,
"ppaEscalatorPercentage": 0,
"omYearOne": 3.5,
"omYearlyEscalatorPercentage": 2.5,
"ppaDuration": 20,
"postPPAPrice": 50,
"postPPAPriceEscalationPercentage": 2,
"projectLife": 35,
"discountNPVPercentage": 6,
"itcEligibilityPercentage": 100,
"solarSalvageValuePercentage": 5,
"insuranceCapitalCostPercentage": 0.15,
"insuranceEscalatorPerYearPercentage": 0,
"bonusDepreciationRate": 0,
"stateTaxRate": 6,
"federalTaxRate": 21,
"solarLandLeaseCost": 0,
"solarLandLeaseEscalationPercentage": 0,
"solarPropertyTaxCost": 0,
"solarPropertyTaxEscalationPercentage": 0
},
"miscellaneousSettings": {
"predictionStatus": 1
},
"devPlatformSimulationSettings": {
"moduleType": 1,
"rackingSystem": 1,
"inverterType": 1,
"largeFormatModuleId": 223,
"shingledMonoPercId": 221,
"thinFilmId": 130,
"halfCellMonoPercId": 4956,
"bifacialId": 11,
"orientationTracker": 0,
"widthTracker": 0.02,
"heightTracker": 0.02,
"numOfPVModulesPerRowsTracker": 3,
"heightAboveGroundTracker": 3,
"pilesPerTableTracker": 5,
"pvModuleTiltMin": 0,
"pvModuleTiltMax": 2,
"tableAxisRotationMinTracker": -54,
"tableAxisRotationMaxTracker": 56,
"enableBacktrackingTracker": false,
"orientationMultistringTracker": 0,
"widthMultistringTracker": 0.02,
"maxWindSpeed": 100,
"motorTableGap": 1.87,
"gapBetweenTables": 0.247,
"heightAboveGroundStringTracker": 0.247,
"gapBetweenTrackers": 0.3,
"tableAxisRotationMinMultistringTracker": -54,
"tableAxisRotationMaxMultistringTracker": 56,
"enableBacktrackingMultistringTracker": false,
"orientationFixedTilt": 0,
"widthFixedTilt": 0.02,
"heightFixedTilt": 0.02,
"numOfPVModulesPerRowsFixedTilt": 3,
"heightAboveGroundFixedTilt": 3,
"pilesPerTableFixedTilt": 7,
"calculateModuleTiltAngle": false,
"moduleTiltAngle": 31,
"inverterCentralId": 739,
"powerFactorCentral": 2,
"ocdpRatingCentral": 320,
"maxNumOfTablesPerColumnCentral": 2,
"inverterStringId": 648,
"powerFactorString": 1,
"ocdpRatingString": 320,
"maxNumOfTablesPerColumnString": 5,
"scenarioAnalysisDefault": 1,
"dcacMinimum": 1,
"dcacMaximum": 2,
"dcacInterval": 1,
"gcrMinimum": 1,
"gcrMaximum": 2,
"gcrInterval": 1
},
"devPlatformSitePlanSettings": {
"widthPerimeterRoad": 666,
"setbackFromSolarArrays": 7.1,
"setbackFromSiteBoundary": 1.1,
"widthInternalRoad": 4,
"setbackA": 7.1,
"setbackB": 2,
"setback": 2,
"widthLinearExclusion": 51,
"showLabels": false
}
}
'import requests
url = "https://api.plantpredict.terabase.energy/Company/DefaultSettings"
payload = {
"environmentalConditions": {
"id": 190,
"monthlySoilingLoss": 2,
"monthlyAlbedo": 0.2
},
"powerPlantBuilder": {
"acCollectionLoss": 1,
"dasLoad": 800,
"coolingLoad": 0,
"transformerHighSideVoltage": 34.5,
"transformerNoLoadLoss": 0.2,
"transformerFullLoadLoss": 0.7,
"powerFactor": 1,
"inverter_Id": 8279,
"dcacRatio": 1.2,
"dcWiringLossAtSTC": 1.5,
"dcHealth": 1,
"trackerLoadLoss": 2.028,
"minimumTrackingLimitAngleD": -60,
"maximumTrackingLimitAngleD": 60,
"structureShading": 5,
"module_Id": 224,
"dcFieldTrackingTypeEnum": 1,
"dcFieldBacktrackingType": 1,
"tiltAngle": None,
"gcr": 40,
"moduleOrientation": 1,
"azimuth": 180,
"modTempModel": 0,
"setback": 6.5,
"northSouthRoadWidth": 6.096011996927617,
"eastWestRoadWidth": 6.096011996927617
},
"simulationSettings": {
"errorModelAcc": 2.9,
"errorSensAcc": 5,
"errorIntAnnVar": 3,
"errorMonAcc": 2,
"errorSpaVar": 2,
"transpositionModel": 1,
"diffuseDirectDecompModel": 3,
"useMeteoDni": False,
"airMassModel": 0,
"soilingModel": 0,
"modTempModel": 0,
"spectralShiftModel": 2,
"incAngleModel": 5,
"directBeamShadingModel": 5,
"degradationModel": 0,
"diffuseShadingModel": 1,
"defaultDegradation": 0,
"linearDegradationRate": 0.5,
"firstYearDegradation": False
},
"weatherAPISettings": {
"meteonormSettings": { "key": None },
"cprSettings": {
"apiKey": "wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth",
"userName": None,
"password": None,
"licenseNumber": None
},
"solarGISSettings": {
"key": "gkvf7nN9IhjcjP9Jp7Lf",
"tmyKey": "MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9",
"version": 2
}
},
"essSettings": {
"factor": 0.9,
"usableEnergyCapacityCalendarDeg": 0.2,
"usableEnergyCapacityCycleDeg": 0.005,
"roundtripDCEfficiencyYear1": 95,
"roundtripDCEfficiencyCalendarDeg": 0.05,
"roundtripDCEfficiencyCycleDeg": 0.0002,
"hvacNoLoadLoss": 1.5,
"hvacFullLoadLoss": 10,
"mvNoLoadLoss": 0.2,
"mvFullLoadLoss": 0.7,
"mvCapacity": None,
"inverterEfficiency": 97,
"chargeAlgorithm": 0
},
"financialModelParameters": {
"bosInput": 0.5,
"developmentCostPerWatt": 0.1,
"moduleCostPerWatt": 0.3,
"itcPercentage": 26,
"yearOneEnergyAdjustmentPercentage": 0,
"ppaPrice": 25,
"ppaEscalatorPercentage": 0,
"omYearOne": 3.5,
"omYearlyEscalatorPercentage": 2.5,
"ppaDuration": 20,
"postPPAPrice": 50,
"postPPAPriceEscalationPercentage": 2,
"projectLife": 35,
"discountNPVPercentage": 6,
"itcEligibilityPercentage": 100,
"solarSalvageValuePercentage": 5,
"insuranceCapitalCostPercentage": 0.15,
"insuranceEscalatorPerYearPercentage": 0,
"bonusDepreciationRate": 0,
"stateTaxRate": 6,
"federalTaxRate": 21,
"solarLandLeaseCost": 0,
"solarLandLeaseEscalationPercentage": 0,
"solarPropertyTaxCost": 0,
"solarPropertyTaxEscalationPercentage": 0
},
"miscellaneousSettings": { "predictionStatus": 1 },
"devPlatformSimulationSettings": {
"moduleType": 1,
"rackingSystem": 1,
"inverterType": 1,
"largeFormatModuleId": 223,
"shingledMonoPercId": 221,
"thinFilmId": 130,
"halfCellMonoPercId": 4956,
"bifacialId": 11,
"orientationTracker": 0,
"widthTracker": 0.02,
"heightTracker": 0.02,
"numOfPVModulesPerRowsTracker": 3,
"heightAboveGroundTracker": 3,
"pilesPerTableTracker": 5,
"pvModuleTiltMin": 0,
"pvModuleTiltMax": 2,
"tableAxisRotationMinTracker": -54,
"tableAxisRotationMaxTracker": 56,
"enableBacktrackingTracker": False,
"orientationMultistringTracker": 0,
"widthMultistringTracker": 0.02,
"maxWindSpeed": 100,
"motorTableGap": 1.87,
"gapBetweenTables": 0.247,
"heightAboveGroundStringTracker": 0.247,
"gapBetweenTrackers": 0.3,
"tableAxisRotationMinMultistringTracker": -54,
"tableAxisRotationMaxMultistringTracker": 56,
"enableBacktrackingMultistringTracker": False,
"orientationFixedTilt": 0,
"widthFixedTilt": 0.02,
"heightFixedTilt": 0.02,
"numOfPVModulesPerRowsFixedTilt": 3,
"heightAboveGroundFixedTilt": 3,
"pilesPerTableFixedTilt": 7,
"calculateModuleTiltAngle": False,
"moduleTiltAngle": 31,
"inverterCentralId": 739,
"powerFactorCentral": 2,
"ocdpRatingCentral": 320,
"maxNumOfTablesPerColumnCentral": 2,
"inverterStringId": 648,
"powerFactorString": 1,
"ocdpRatingString": 320,
"maxNumOfTablesPerColumnString": 5,
"scenarioAnalysisDefault": 1,
"dcacMinimum": 1,
"dcacMaximum": 2,
"dcacInterval": 1,
"gcrMinimum": 1,
"gcrMaximum": 2,
"gcrInterval": 1
},
"devPlatformSitePlanSettings": {
"widthPerimeterRoad": 666,
"setbackFromSolarArrays": 7.1,
"setbackFromSiteBoundary": 1.1,
"widthInternalRoad": 4,
"setbackA": 7.1,
"setbackB": 2,
"setback": 2,
"widthLinearExclusion": 51,
"showLabels": False
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
environmentalConditions: {id: 190, monthlySoilingLoss: 2, monthlyAlbedo: 0.2},
powerPlantBuilder: {
acCollectionLoss: 1,
dasLoad: 800,
coolingLoad: 0,
transformerHighSideVoltage: 34.5,
transformerNoLoadLoss: 0.2,
transformerFullLoadLoss: 0.7,
powerFactor: 1,
inverter_Id: 8279,
dcacRatio: 1.2,
dcWiringLossAtSTC: 1.5,
dcHealth: 1,
trackerLoadLoss: 2.028,
minimumTrackingLimitAngleD: -60,
maximumTrackingLimitAngleD: 60,
structureShading: 5,
module_Id: 224,
dcFieldTrackingTypeEnum: 1,
dcFieldBacktrackingType: 1,
tiltAngle: null,
gcr: 40,
moduleOrientation: 1,
azimuth: 180,
modTempModel: 0,
setback: 6.5,
northSouthRoadWidth: 6.096011996927617,
eastWestRoadWidth: 6.096011996927617
},
simulationSettings: {
errorModelAcc: 2.9,
errorSensAcc: 5,
errorIntAnnVar: 3,
errorMonAcc: 2,
errorSpaVar: 2,
transpositionModel: 1,
diffuseDirectDecompModel: 3,
useMeteoDni: false,
airMassModel: 0,
soilingModel: 0,
modTempModel: 0,
spectralShiftModel: 2,
incAngleModel: 5,
directBeamShadingModel: 5,
degradationModel: 0,
diffuseShadingModel: 1,
defaultDegradation: 0,
linearDegradationRate: 0.5,
firstYearDegradation: false
},
weatherAPISettings: {
meteonormSettings: {key: null},
cprSettings: {
apiKey: 'wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth',
userName: null,
password: null,
licenseNumber: null
},
solarGISSettings: {
key: 'gkvf7nN9IhjcjP9Jp7Lf',
tmyKey: 'MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9',
version: 2
}
},
essSettings: {
factor: 0.9,
usableEnergyCapacityCalendarDeg: 0.2,
usableEnergyCapacityCycleDeg: 0.005,
roundtripDCEfficiencyYear1: 95,
roundtripDCEfficiencyCalendarDeg: 0.05,
roundtripDCEfficiencyCycleDeg: 0.0002,
hvacNoLoadLoss: 1.5,
hvacFullLoadLoss: 10,
mvNoLoadLoss: 0.2,
mvFullLoadLoss: 0.7,
mvCapacity: null,
inverterEfficiency: 97,
chargeAlgorithm: 0
},
financialModelParameters: {
bosInput: 0.5,
developmentCostPerWatt: 0.1,
moduleCostPerWatt: 0.3,
itcPercentage: 26,
yearOneEnergyAdjustmentPercentage: 0,
ppaPrice: 25,
ppaEscalatorPercentage: 0,
omYearOne: 3.5,
omYearlyEscalatorPercentage: 2.5,
ppaDuration: 20,
postPPAPrice: 50,
postPPAPriceEscalationPercentage: 2,
projectLife: 35,
discountNPVPercentage: 6,
itcEligibilityPercentage: 100,
solarSalvageValuePercentage: 5,
insuranceCapitalCostPercentage: 0.15,
insuranceEscalatorPerYearPercentage: 0,
bonusDepreciationRate: 0,
stateTaxRate: 6,
federalTaxRate: 21,
solarLandLeaseCost: 0,
solarLandLeaseEscalationPercentage: 0,
solarPropertyTaxCost: 0,
solarPropertyTaxEscalationPercentage: 0
},
miscellaneousSettings: {predictionStatus: 1},
devPlatformSimulationSettings: {
moduleType: 1,
rackingSystem: 1,
inverterType: 1,
largeFormatModuleId: 223,
shingledMonoPercId: 221,
thinFilmId: 130,
halfCellMonoPercId: 4956,
bifacialId: 11,
orientationTracker: 0,
widthTracker: 0.02,
heightTracker: 0.02,
numOfPVModulesPerRowsTracker: 3,
heightAboveGroundTracker: 3,
pilesPerTableTracker: 5,
pvModuleTiltMin: 0,
pvModuleTiltMax: 2,
tableAxisRotationMinTracker: -54,
tableAxisRotationMaxTracker: 56,
enableBacktrackingTracker: false,
orientationMultistringTracker: 0,
widthMultistringTracker: 0.02,
maxWindSpeed: 100,
motorTableGap: 1.87,
gapBetweenTables: 0.247,
heightAboveGroundStringTracker: 0.247,
gapBetweenTrackers: 0.3,
tableAxisRotationMinMultistringTracker: -54,
tableAxisRotationMaxMultistringTracker: 56,
enableBacktrackingMultistringTracker: false,
orientationFixedTilt: 0,
widthFixedTilt: 0.02,
heightFixedTilt: 0.02,
numOfPVModulesPerRowsFixedTilt: 3,
heightAboveGroundFixedTilt: 3,
pilesPerTableFixedTilt: 7,
calculateModuleTiltAngle: false,
moduleTiltAngle: 31,
inverterCentralId: 739,
powerFactorCentral: 2,
ocdpRatingCentral: 320,
maxNumOfTablesPerColumnCentral: 2,
inverterStringId: 648,
powerFactorString: 1,
ocdpRatingString: 320,
maxNumOfTablesPerColumnString: 5,
scenarioAnalysisDefault: 1,
dcacMinimum: 1,
dcacMaximum: 2,
dcacInterval: 1,
gcrMinimum: 1,
gcrMaximum: 2,
gcrInterval: 1
},
devPlatformSitePlanSettings: {
widthPerimeterRoad: 666,
setbackFromSolarArrays: 7.1,
setbackFromSiteBoundary: 1.1,
widthInternalRoad: 4,
setbackA: 7.1,
setbackB: 2,
setback: 2,
widthLinearExclusion: 51,
showLabels: false
}
})
};
fetch('https://api.plantpredict.terabase.energy/Company/DefaultSettings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.plantpredict.terabase.energy/Company/DefaultSettings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'environmentalConditions' => [
'id' => 190,
'monthlySoilingLoss' => 2,
'monthlyAlbedo' => 0.2
],
'powerPlantBuilder' => [
'acCollectionLoss' => 1,
'dasLoad' => 800,
'coolingLoad' => 0,
'transformerHighSideVoltage' => 34.5,
'transformerNoLoadLoss' => 0.2,
'transformerFullLoadLoss' => 0.7,
'powerFactor' => 1,
'inverter_Id' => 8279,
'dcacRatio' => 1.2,
'dcWiringLossAtSTC' => 1.5,
'dcHealth' => 1,
'trackerLoadLoss' => 2.028,
'minimumTrackingLimitAngleD' => -60,
'maximumTrackingLimitAngleD' => 60,
'structureShading' => 5,
'module_Id' => 224,
'dcFieldTrackingTypeEnum' => 1,
'dcFieldBacktrackingType' => 1,
'tiltAngle' => null,
'gcr' => 40,
'moduleOrientation' => 1,
'azimuth' => 180,
'modTempModel' => 0,
'setback' => 6.5,
'northSouthRoadWidth' => 6.096011996927617,
'eastWestRoadWidth' => 6.096011996927617
],
'simulationSettings' => [
'errorModelAcc' => 2.9,
'errorSensAcc' => 5,
'errorIntAnnVar' => 3,
'errorMonAcc' => 2,
'errorSpaVar' => 2,
'transpositionModel' => 1,
'diffuseDirectDecompModel' => 3,
'useMeteoDni' => false,
'airMassModel' => 0,
'soilingModel' => 0,
'modTempModel' => 0,
'spectralShiftModel' => 2,
'incAngleModel' => 5,
'directBeamShadingModel' => 5,
'degradationModel' => 0,
'diffuseShadingModel' => 1,
'defaultDegradation' => 0,
'linearDegradationRate' => 0.5,
'firstYearDegradation' => false
],
'weatherAPISettings' => [
'meteonormSettings' => [
'key' => null
],
'cprSettings' => [
'apiKey' => 'wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth',
'userName' => null,
'password' => null,
'licenseNumber' => null
],
'solarGISSettings' => [
'key' => 'gkvf7nN9IhjcjP9Jp7Lf',
'tmyKey' => 'MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9',
'version' => 2
]
],
'essSettings' => [
'factor' => 0.9,
'usableEnergyCapacityCalendarDeg' => 0.2,
'usableEnergyCapacityCycleDeg' => 0.005,
'roundtripDCEfficiencyYear1' => 95,
'roundtripDCEfficiencyCalendarDeg' => 0.05,
'roundtripDCEfficiencyCycleDeg' => 0.0002,
'hvacNoLoadLoss' => 1.5,
'hvacFullLoadLoss' => 10,
'mvNoLoadLoss' => 0.2,
'mvFullLoadLoss' => 0.7,
'mvCapacity' => null,
'inverterEfficiency' => 97,
'chargeAlgorithm' => 0
],
'financialModelParameters' => [
'bosInput' => 0.5,
'developmentCostPerWatt' => 0.1,
'moduleCostPerWatt' => 0.3,
'itcPercentage' => 26,
'yearOneEnergyAdjustmentPercentage' => 0,
'ppaPrice' => 25,
'ppaEscalatorPercentage' => 0,
'omYearOne' => 3.5,
'omYearlyEscalatorPercentage' => 2.5,
'ppaDuration' => 20,
'postPPAPrice' => 50,
'postPPAPriceEscalationPercentage' => 2,
'projectLife' => 35,
'discountNPVPercentage' => 6,
'itcEligibilityPercentage' => 100,
'solarSalvageValuePercentage' => 5,
'insuranceCapitalCostPercentage' => 0.15,
'insuranceEscalatorPerYearPercentage' => 0,
'bonusDepreciationRate' => 0,
'stateTaxRate' => 6,
'federalTaxRate' => 21,
'solarLandLeaseCost' => 0,
'solarLandLeaseEscalationPercentage' => 0,
'solarPropertyTaxCost' => 0,
'solarPropertyTaxEscalationPercentage' => 0
],
'miscellaneousSettings' => [
'predictionStatus' => 1
],
'devPlatformSimulationSettings' => [
'moduleType' => 1,
'rackingSystem' => 1,
'inverterType' => 1,
'largeFormatModuleId' => 223,
'shingledMonoPercId' => 221,
'thinFilmId' => 130,
'halfCellMonoPercId' => 4956,
'bifacialId' => 11,
'orientationTracker' => 0,
'widthTracker' => 0.02,
'heightTracker' => 0.02,
'numOfPVModulesPerRowsTracker' => 3,
'heightAboveGroundTracker' => 3,
'pilesPerTableTracker' => 5,
'pvModuleTiltMin' => 0,
'pvModuleTiltMax' => 2,
'tableAxisRotationMinTracker' => -54,
'tableAxisRotationMaxTracker' => 56,
'enableBacktrackingTracker' => false,
'orientationMultistringTracker' => 0,
'widthMultistringTracker' => 0.02,
'maxWindSpeed' => 100,
'motorTableGap' => 1.87,
'gapBetweenTables' => 0.247,
'heightAboveGroundStringTracker' => 0.247,
'gapBetweenTrackers' => 0.3,
'tableAxisRotationMinMultistringTracker' => -54,
'tableAxisRotationMaxMultistringTracker' => 56,
'enableBacktrackingMultistringTracker' => false,
'orientationFixedTilt' => 0,
'widthFixedTilt' => 0.02,
'heightFixedTilt' => 0.02,
'numOfPVModulesPerRowsFixedTilt' => 3,
'heightAboveGroundFixedTilt' => 3,
'pilesPerTableFixedTilt' => 7,
'calculateModuleTiltAngle' => false,
'moduleTiltAngle' => 31,
'inverterCentralId' => 739,
'powerFactorCentral' => 2,
'ocdpRatingCentral' => 320,
'maxNumOfTablesPerColumnCentral' => 2,
'inverterStringId' => 648,
'powerFactorString' => 1,
'ocdpRatingString' => 320,
'maxNumOfTablesPerColumnString' => 5,
'scenarioAnalysisDefault' => 1,
'dcacMinimum' => 1,
'dcacMaximum' => 2,
'dcacInterval' => 1,
'gcrMinimum' => 1,
'gcrMaximum' => 2,
'gcrInterval' => 1
],
'devPlatformSitePlanSettings' => [
'widthPerimeterRoad' => 666,
'setbackFromSolarArrays' => 7.1,
'setbackFromSiteBoundary' => 1.1,
'widthInternalRoad' => 4,
'setbackA' => 7.1,
'setbackB' => 2,
'setback' => 2,
'widthLinearExclusion' => 51,
'showLabels' => false
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.plantpredict.terabase.energy/Company/DefaultSettings"
payload := strings.NewReader("{\n \"environmentalConditions\": {\n \"id\": 190,\n \"monthlySoilingLoss\": 2,\n \"monthlyAlbedo\": 0.2\n },\n \"powerPlantBuilder\": {\n \"acCollectionLoss\": 1,\n \"dasLoad\": 800,\n \"coolingLoad\": 0,\n \"transformerHighSideVoltage\": 34.5,\n \"transformerNoLoadLoss\": 0.2,\n \"transformerFullLoadLoss\": 0.7,\n \"powerFactor\": 1,\n \"inverter_Id\": 8279,\n \"dcacRatio\": 1.2,\n \"dcWiringLossAtSTC\": 1.5,\n \"dcHealth\": 1,\n \"trackerLoadLoss\": 2.028,\n \"minimumTrackingLimitAngleD\": -60,\n \"maximumTrackingLimitAngleD\": 60,\n \"structureShading\": 5,\n \"module_Id\": 224,\n \"dcFieldTrackingTypeEnum\": 1,\n \"dcFieldBacktrackingType\": 1,\n \"tiltAngle\": null,\n \"gcr\": 40,\n \"moduleOrientation\": 1,\n \"azimuth\": 180,\n \"modTempModel\": 0,\n \"setback\": 6.5,\n \"northSouthRoadWidth\": 6.096011996927617,\n \"eastWestRoadWidth\": 6.096011996927617\n },\n \"simulationSettings\": {\n \"errorModelAcc\": 2.9,\n \"errorSensAcc\": 5,\n \"errorIntAnnVar\": 3,\n \"errorMonAcc\": 2,\n \"errorSpaVar\": 2,\n \"transpositionModel\": 1,\n \"diffuseDirectDecompModel\": 3,\n \"useMeteoDni\": false,\n \"airMassModel\": 0,\n \"soilingModel\": 0,\n \"modTempModel\": 0,\n \"spectralShiftModel\": 2,\n \"incAngleModel\": 5,\n \"directBeamShadingModel\": 5,\n \"degradationModel\": 0,\n \"diffuseShadingModel\": 1,\n \"defaultDegradation\": 0,\n \"linearDegradationRate\": 0.5,\n \"firstYearDegradation\": false\n },\n \"weatherAPISettings\": {\n \"meteonormSettings\": {\n \"key\": null\n },\n \"cprSettings\": {\n \"apiKey\": \"wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth\",\n \"userName\": null,\n \"password\": null,\n \"licenseNumber\": null\n },\n \"solarGISSettings\": {\n \"key\": \"gkvf7nN9IhjcjP9Jp7Lf\",\n \"tmyKey\": \"MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9\",\n \"version\": 2\n }\n },\n \"essSettings\": {\n \"factor\": 0.9,\n \"usableEnergyCapacityCalendarDeg\": 0.2,\n \"usableEnergyCapacityCycleDeg\": 0.005,\n \"roundtripDCEfficiencyYear1\": 95,\n \"roundtripDCEfficiencyCalendarDeg\": 0.05,\n \"roundtripDCEfficiencyCycleDeg\": 0.0002,\n \"hvacNoLoadLoss\": 1.5,\n \"hvacFullLoadLoss\": 10,\n \"mvNoLoadLoss\": 0.2,\n \"mvFullLoadLoss\": 0.7,\n \"mvCapacity\": null,\n \"inverterEfficiency\": 97,\n \"chargeAlgorithm\": 0\n },\n \"financialModelParameters\": {\n \"bosInput\": 0.5,\n \"developmentCostPerWatt\": 0.1,\n \"moduleCostPerWatt\": 0.3,\n \"itcPercentage\": 26,\n \"yearOneEnergyAdjustmentPercentage\": 0,\n \"ppaPrice\": 25,\n \"ppaEscalatorPercentage\": 0,\n \"omYearOne\": 3.5,\n \"omYearlyEscalatorPercentage\": 2.5,\n \"ppaDuration\": 20,\n \"postPPAPrice\": 50,\n \"postPPAPriceEscalationPercentage\": 2,\n \"projectLife\": 35,\n \"discountNPVPercentage\": 6,\n \"itcEligibilityPercentage\": 100,\n \"solarSalvageValuePercentage\": 5,\n \"insuranceCapitalCostPercentage\": 0.15,\n \"insuranceEscalatorPerYearPercentage\": 0,\n \"bonusDepreciationRate\": 0,\n \"stateTaxRate\": 6,\n \"federalTaxRate\": 21,\n \"solarLandLeaseCost\": 0,\n \"solarLandLeaseEscalationPercentage\": 0,\n \"solarPropertyTaxCost\": 0,\n \"solarPropertyTaxEscalationPercentage\": 0\n },\n \"miscellaneousSettings\": {\n \"predictionStatus\": 1\n },\n \"devPlatformSimulationSettings\": {\n \"moduleType\": 1,\n \"rackingSystem\": 1,\n \"inverterType\": 1,\n \"largeFormatModuleId\": 223,\n \"shingledMonoPercId\": 221,\n \"thinFilmId\": 130,\n \"halfCellMonoPercId\": 4956,\n \"bifacialId\": 11,\n \"orientationTracker\": 0,\n \"widthTracker\": 0.02,\n \"heightTracker\": 0.02,\n \"numOfPVModulesPerRowsTracker\": 3,\n \"heightAboveGroundTracker\": 3,\n \"pilesPerTableTracker\": 5,\n \"pvModuleTiltMin\": 0,\n \"pvModuleTiltMax\": 2,\n \"tableAxisRotationMinTracker\": -54,\n \"tableAxisRotationMaxTracker\": 56,\n \"enableBacktrackingTracker\": false,\n \"orientationMultistringTracker\": 0,\n \"widthMultistringTracker\": 0.02,\n \"maxWindSpeed\": 100,\n \"motorTableGap\": 1.87,\n \"gapBetweenTables\": 0.247,\n \"heightAboveGroundStringTracker\": 0.247,\n \"gapBetweenTrackers\": 0.3,\n \"tableAxisRotationMinMultistringTracker\": -54,\n \"tableAxisRotationMaxMultistringTracker\": 56,\n \"enableBacktrackingMultistringTracker\": false,\n \"orientationFixedTilt\": 0,\n \"widthFixedTilt\": 0.02,\n \"heightFixedTilt\": 0.02,\n \"numOfPVModulesPerRowsFixedTilt\": 3,\n \"heightAboveGroundFixedTilt\": 3,\n \"pilesPerTableFixedTilt\": 7,\n \"calculateModuleTiltAngle\": false,\n \"moduleTiltAngle\": 31,\n \"inverterCentralId\": 739,\n \"powerFactorCentral\": 2,\n \"ocdpRatingCentral\": 320,\n \"maxNumOfTablesPerColumnCentral\": 2,\n \"inverterStringId\": 648,\n \"powerFactorString\": 1,\n \"ocdpRatingString\": 320,\n \"maxNumOfTablesPerColumnString\": 5,\n \"scenarioAnalysisDefault\": 1,\n \"dcacMinimum\": 1,\n \"dcacMaximum\": 2,\n \"dcacInterval\": 1,\n \"gcrMinimum\": 1,\n \"gcrMaximum\": 2,\n \"gcrInterval\": 1\n },\n \"devPlatformSitePlanSettings\": {\n \"widthPerimeterRoad\": 666,\n \"setbackFromSolarArrays\": 7.1,\n \"setbackFromSiteBoundary\": 1.1,\n \"widthInternalRoad\": 4,\n \"setbackA\": 7.1,\n \"setbackB\": 2,\n \"setback\": 2,\n \"widthLinearExclusion\": 51,\n \"showLabels\": false\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.plantpredict.terabase.energy/Company/DefaultSettings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"environmentalConditions\": {\n \"id\": 190,\n \"monthlySoilingLoss\": 2,\n \"monthlyAlbedo\": 0.2\n },\n \"powerPlantBuilder\": {\n \"acCollectionLoss\": 1,\n \"dasLoad\": 800,\n \"coolingLoad\": 0,\n \"transformerHighSideVoltage\": 34.5,\n \"transformerNoLoadLoss\": 0.2,\n \"transformerFullLoadLoss\": 0.7,\n \"powerFactor\": 1,\n \"inverter_Id\": 8279,\n \"dcacRatio\": 1.2,\n \"dcWiringLossAtSTC\": 1.5,\n \"dcHealth\": 1,\n \"trackerLoadLoss\": 2.028,\n \"minimumTrackingLimitAngleD\": -60,\n \"maximumTrackingLimitAngleD\": 60,\n \"structureShading\": 5,\n \"module_Id\": 224,\n \"dcFieldTrackingTypeEnum\": 1,\n \"dcFieldBacktrackingType\": 1,\n \"tiltAngle\": null,\n \"gcr\": 40,\n \"moduleOrientation\": 1,\n \"azimuth\": 180,\n \"modTempModel\": 0,\n \"setback\": 6.5,\n \"northSouthRoadWidth\": 6.096011996927617,\n \"eastWestRoadWidth\": 6.096011996927617\n },\n \"simulationSettings\": {\n \"errorModelAcc\": 2.9,\n \"errorSensAcc\": 5,\n \"errorIntAnnVar\": 3,\n \"errorMonAcc\": 2,\n \"errorSpaVar\": 2,\n \"transpositionModel\": 1,\n \"diffuseDirectDecompModel\": 3,\n \"useMeteoDni\": false,\n \"airMassModel\": 0,\n \"soilingModel\": 0,\n \"modTempModel\": 0,\n \"spectralShiftModel\": 2,\n \"incAngleModel\": 5,\n \"directBeamShadingModel\": 5,\n \"degradationModel\": 0,\n \"diffuseShadingModel\": 1,\n \"defaultDegradation\": 0,\n \"linearDegradationRate\": 0.5,\n \"firstYearDegradation\": false\n },\n \"weatherAPISettings\": {\n \"meteonormSettings\": {\n \"key\": null\n },\n \"cprSettings\": {\n \"apiKey\": \"wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth\",\n \"userName\": null,\n \"password\": null,\n \"licenseNumber\": null\n },\n \"solarGISSettings\": {\n \"key\": \"gkvf7nN9IhjcjP9Jp7Lf\",\n \"tmyKey\": \"MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9\",\n \"version\": 2\n }\n },\n \"essSettings\": {\n \"factor\": 0.9,\n \"usableEnergyCapacityCalendarDeg\": 0.2,\n \"usableEnergyCapacityCycleDeg\": 0.005,\n \"roundtripDCEfficiencyYear1\": 95,\n \"roundtripDCEfficiencyCalendarDeg\": 0.05,\n \"roundtripDCEfficiencyCycleDeg\": 0.0002,\n \"hvacNoLoadLoss\": 1.5,\n \"hvacFullLoadLoss\": 10,\n \"mvNoLoadLoss\": 0.2,\n \"mvFullLoadLoss\": 0.7,\n \"mvCapacity\": null,\n \"inverterEfficiency\": 97,\n \"chargeAlgorithm\": 0\n },\n \"financialModelParameters\": {\n \"bosInput\": 0.5,\n \"developmentCostPerWatt\": 0.1,\n \"moduleCostPerWatt\": 0.3,\n \"itcPercentage\": 26,\n \"yearOneEnergyAdjustmentPercentage\": 0,\n \"ppaPrice\": 25,\n \"ppaEscalatorPercentage\": 0,\n \"omYearOne\": 3.5,\n \"omYearlyEscalatorPercentage\": 2.5,\n \"ppaDuration\": 20,\n \"postPPAPrice\": 50,\n \"postPPAPriceEscalationPercentage\": 2,\n \"projectLife\": 35,\n \"discountNPVPercentage\": 6,\n \"itcEligibilityPercentage\": 100,\n \"solarSalvageValuePercentage\": 5,\n \"insuranceCapitalCostPercentage\": 0.15,\n \"insuranceEscalatorPerYearPercentage\": 0,\n \"bonusDepreciationRate\": 0,\n \"stateTaxRate\": 6,\n \"federalTaxRate\": 21,\n \"solarLandLeaseCost\": 0,\n \"solarLandLeaseEscalationPercentage\": 0,\n \"solarPropertyTaxCost\": 0,\n \"solarPropertyTaxEscalationPercentage\": 0\n },\n \"miscellaneousSettings\": {\n \"predictionStatus\": 1\n },\n \"devPlatformSimulationSettings\": {\n \"moduleType\": 1,\n \"rackingSystem\": 1,\n \"inverterType\": 1,\n \"largeFormatModuleId\": 223,\n \"shingledMonoPercId\": 221,\n \"thinFilmId\": 130,\n \"halfCellMonoPercId\": 4956,\n \"bifacialId\": 11,\n \"orientationTracker\": 0,\n \"widthTracker\": 0.02,\n \"heightTracker\": 0.02,\n \"numOfPVModulesPerRowsTracker\": 3,\n \"heightAboveGroundTracker\": 3,\n \"pilesPerTableTracker\": 5,\n \"pvModuleTiltMin\": 0,\n \"pvModuleTiltMax\": 2,\n \"tableAxisRotationMinTracker\": -54,\n \"tableAxisRotationMaxTracker\": 56,\n \"enableBacktrackingTracker\": false,\n \"orientationMultistringTracker\": 0,\n \"widthMultistringTracker\": 0.02,\n \"maxWindSpeed\": 100,\n \"motorTableGap\": 1.87,\n \"gapBetweenTables\": 0.247,\n \"heightAboveGroundStringTracker\": 0.247,\n \"gapBetweenTrackers\": 0.3,\n \"tableAxisRotationMinMultistringTracker\": -54,\n \"tableAxisRotationMaxMultistringTracker\": 56,\n \"enableBacktrackingMultistringTracker\": false,\n \"orientationFixedTilt\": 0,\n \"widthFixedTilt\": 0.02,\n \"heightFixedTilt\": 0.02,\n \"numOfPVModulesPerRowsFixedTilt\": 3,\n \"heightAboveGroundFixedTilt\": 3,\n \"pilesPerTableFixedTilt\": 7,\n \"calculateModuleTiltAngle\": false,\n \"moduleTiltAngle\": 31,\n \"inverterCentralId\": 739,\n \"powerFactorCentral\": 2,\n \"ocdpRatingCentral\": 320,\n \"maxNumOfTablesPerColumnCentral\": 2,\n \"inverterStringId\": 648,\n \"powerFactorString\": 1,\n \"ocdpRatingString\": 320,\n \"maxNumOfTablesPerColumnString\": 5,\n \"scenarioAnalysisDefault\": 1,\n \"dcacMinimum\": 1,\n \"dcacMaximum\": 2,\n \"dcacInterval\": 1,\n \"gcrMinimum\": 1,\n \"gcrMaximum\": 2,\n \"gcrInterval\": 1\n },\n \"devPlatformSitePlanSettings\": {\n \"widthPerimeterRoad\": 666,\n \"setbackFromSolarArrays\": 7.1,\n \"setbackFromSiteBoundary\": 1.1,\n \"widthInternalRoad\": 4,\n \"setbackA\": 7.1,\n \"setbackB\": 2,\n \"setback\": 2,\n \"widthLinearExclusion\": 51,\n \"showLabels\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.plantpredict.terabase.energy/Company/DefaultSettings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"environmentalConditions\": {\n \"id\": 190,\n \"monthlySoilingLoss\": 2,\n \"monthlyAlbedo\": 0.2\n },\n \"powerPlantBuilder\": {\n \"acCollectionLoss\": 1,\n \"dasLoad\": 800,\n \"coolingLoad\": 0,\n \"transformerHighSideVoltage\": 34.5,\n \"transformerNoLoadLoss\": 0.2,\n \"transformerFullLoadLoss\": 0.7,\n \"powerFactor\": 1,\n \"inverter_Id\": 8279,\n \"dcacRatio\": 1.2,\n \"dcWiringLossAtSTC\": 1.5,\n \"dcHealth\": 1,\n \"trackerLoadLoss\": 2.028,\n \"minimumTrackingLimitAngleD\": -60,\n \"maximumTrackingLimitAngleD\": 60,\n \"structureShading\": 5,\n \"module_Id\": 224,\n \"dcFieldTrackingTypeEnum\": 1,\n \"dcFieldBacktrackingType\": 1,\n \"tiltAngle\": null,\n \"gcr\": 40,\n \"moduleOrientation\": 1,\n \"azimuth\": 180,\n \"modTempModel\": 0,\n \"setback\": 6.5,\n \"northSouthRoadWidth\": 6.096011996927617,\n \"eastWestRoadWidth\": 6.096011996927617\n },\n \"simulationSettings\": {\n \"errorModelAcc\": 2.9,\n \"errorSensAcc\": 5,\n \"errorIntAnnVar\": 3,\n \"errorMonAcc\": 2,\n \"errorSpaVar\": 2,\n \"transpositionModel\": 1,\n \"diffuseDirectDecompModel\": 3,\n \"useMeteoDni\": false,\n \"airMassModel\": 0,\n \"soilingModel\": 0,\n \"modTempModel\": 0,\n \"spectralShiftModel\": 2,\n \"incAngleModel\": 5,\n \"directBeamShadingModel\": 5,\n \"degradationModel\": 0,\n \"diffuseShadingModel\": 1,\n \"defaultDegradation\": 0,\n \"linearDegradationRate\": 0.5,\n \"firstYearDegradation\": false\n },\n \"weatherAPISettings\": {\n \"meteonormSettings\": {\n \"key\": null\n },\n \"cprSettings\": {\n \"apiKey\": \"wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth\",\n \"userName\": null,\n \"password\": null,\n \"licenseNumber\": null\n },\n \"solarGISSettings\": {\n \"key\": \"gkvf7nN9IhjcjP9Jp7Lf\",\n \"tmyKey\": \"MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9\",\n \"version\": 2\n }\n },\n \"essSettings\": {\n \"factor\": 0.9,\n \"usableEnergyCapacityCalendarDeg\": 0.2,\n \"usableEnergyCapacityCycleDeg\": 0.005,\n \"roundtripDCEfficiencyYear1\": 95,\n \"roundtripDCEfficiencyCalendarDeg\": 0.05,\n \"roundtripDCEfficiencyCycleDeg\": 0.0002,\n \"hvacNoLoadLoss\": 1.5,\n \"hvacFullLoadLoss\": 10,\n \"mvNoLoadLoss\": 0.2,\n \"mvFullLoadLoss\": 0.7,\n \"mvCapacity\": null,\n \"inverterEfficiency\": 97,\n \"chargeAlgorithm\": 0\n },\n \"financialModelParameters\": {\n \"bosInput\": 0.5,\n \"developmentCostPerWatt\": 0.1,\n \"moduleCostPerWatt\": 0.3,\n \"itcPercentage\": 26,\n \"yearOneEnergyAdjustmentPercentage\": 0,\n \"ppaPrice\": 25,\n \"ppaEscalatorPercentage\": 0,\n \"omYearOne\": 3.5,\n \"omYearlyEscalatorPercentage\": 2.5,\n \"ppaDuration\": 20,\n \"postPPAPrice\": 50,\n \"postPPAPriceEscalationPercentage\": 2,\n \"projectLife\": 35,\n \"discountNPVPercentage\": 6,\n \"itcEligibilityPercentage\": 100,\n \"solarSalvageValuePercentage\": 5,\n \"insuranceCapitalCostPercentage\": 0.15,\n \"insuranceEscalatorPerYearPercentage\": 0,\n \"bonusDepreciationRate\": 0,\n \"stateTaxRate\": 6,\n \"federalTaxRate\": 21,\n \"solarLandLeaseCost\": 0,\n \"solarLandLeaseEscalationPercentage\": 0,\n \"solarPropertyTaxCost\": 0,\n \"solarPropertyTaxEscalationPercentage\": 0\n },\n \"miscellaneousSettings\": {\n \"predictionStatus\": 1\n },\n \"devPlatformSimulationSettings\": {\n \"moduleType\": 1,\n \"rackingSystem\": 1,\n \"inverterType\": 1,\n \"largeFormatModuleId\": 223,\n \"shingledMonoPercId\": 221,\n \"thinFilmId\": 130,\n \"halfCellMonoPercId\": 4956,\n \"bifacialId\": 11,\n \"orientationTracker\": 0,\n \"widthTracker\": 0.02,\n \"heightTracker\": 0.02,\n \"numOfPVModulesPerRowsTracker\": 3,\n \"heightAboveGroundTracker\": 3,\n \"pilesPerTableTracker\": 5,\n \"pvModuleTiltMin\": 0,\n \"pvModuleTiltMax\": 2,\n \"tableAxisRotationMinTracker\": -54,\n \"tableAxisRotationMaxTracker\": 56,\n \"enableBacktrackingTracker\": false,\n \"orientationMultistringTracker\": 0,\n \"widthMultistringTracker\": 0.02,\n \"maxWindSpeed\": 100,\n \"motorTableGap\": 1.87,\n \"gapBetweenTables\": 0.247,\n \"heightAboveGroundStringTracker\": 0.247,\n \"gapBetweenTrackers\": 0.3,\n \"tableAxisRotationMinMultistringTracker\": -54,\n \"tableAxisRotationMaxMultistringTracker\": 56,\n \"enableBacktrackingMultistringTracker\": false,\n \"orientationFixedTilt\": 0,\n \"widthFixedTilt\": 0.02,\n \"heightFixedTilt\": 0.02,\n \"numOfPVModulesPerRowsFixedTilt\": 3,\n \"heightAboveGroundFixedTilt\": 3,\n \"pilesPerTableFixedTilt\": 7,\n \"calculateModuleTiltAngle\": false,\n \"moduleTiltAngle\": 31,\n \"inverterCentralId\": 739,\n \"powerFactorCentral\": 2,\n \"ocdpRatingCentral\": 320,\n \"maxNumOfTablesPerColumnCentral\": 2,\n \"inverterStringId\": 648,\n \"powerFactorString\": 1,\n \"ocdpRatingString\": 320,\n \"maxNumOfTablesPerColumnString\": 5,\n \"scenarioAnalysisDefault\": 1,\n \"dcacMinimum\": 1,\n \"dcacMaximum\": 2,\n \"dcacInterval\": 1,\n \"gcrMinimum\": 1,\n \"gcrMaximum\": 2,\n \"gcrInterval\": 1\n },\n \"devPlatformSitePlanSettings\": {\n \"widthPerimeterRoad\": 666,\n \"setbackFromSolarArrays\": 7.1,\n \"setbackFromSiteBoundary\": 1.1,\n \"widthInternalRoad\": 4,\n \"setbackA\": 7.1,\n \"setbackB\": 2,\n \"setback\": 2,\n \"widthLinearExclusion\": 51,\n \"showLabels\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "The request is invalid.",
"modelState": {
"latitude": [
"The field Latitude must be between -90 and 90."
]
}
}"Project not found.""An error has occurred."Authorizations
Pass Authorization: Bearer <token> on every request. See the Authentication section of the API description for how to fetch a token.
Body
application/json
Response
Updated
⌘I
Update company default settings
curl --request PUT \
--url https://api.plantpredict.terabase.energy/Company/DefaultSettings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"environmentalConditions": {
"id": 190,
"monthlySoilingLoss": 2,
"monthlyAlbedo": 0.2
},
"powerPlantBuilder": {
"acCollectionLoss": 1,
"dasLoad": 800,
"coolingLoad": 0,
"transformerHighSideVoltage": 34.5,
"transformerNoLoadLoss": 0.2,
"transformerFullLoadLoss": 0.7,
"powerFactor": 1,
"inverter_Id": 8279,
"dcacRatio": 1.2,
"dcWiringLossAtSTC": 1.5,
"dcHealth": 1,
"trackerLoadLoss": 2.028,
"minimumTrackingLimitAngleD": -60,
"maximumTrackingLimitAngleD": 60,
"structureShading": 5,
"module_Id": 224,
"dcFieldTrackingTypeEnum": 1,
"dcFieldBacktrackingType": 1,
"tiltAngle": null,
"gcr": 40,
"moduleOrientation": 1,
"azimuth": 180,
"modTempModel": 0,
"setback": 6.5,
"northSouthRoadWidth": 6.096011996927617,
"eastWestRoadWidth": 6.096011996927617
},
"simulationSettings": {
"errorModelAcc": 2.9,
"errorSensAcc": 5,
"errorIntAnnVar": 3,
"errorMonAcc": 2,
"errorSpaVar": 2,
"transpositionModel": 1,
"diffuseDirectDecompModel": 3,
"useMeteoDni": false,
"airMassModel": 0,
"soilingModel": 0,
"modTempModel": 0,
"spectralShiftModel": 2,
"incAngleModel": 5,
"directBeamShadingModel": 5,
"degradationModel": 0,
"diffuseShadingModel": 1,
"defaultDegradation": 0,
"linearDegradationRate": 0.5,
"firstYearDegradation": false
},
"weatherAPISettings": {
"meteonormSettings": {
"key": null
},
"cprSettings": {
"apiKey": "wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth",
"userName": null,
"password": null,
"licenseNumber": null
},
"solarGISSettings": {
"key": "gkvf7nN9IhjcjP9Jp7Lf",
"tmyKey": "MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9",
"version": 2
}
},
"essSettings": {
"factor": 0.9,
"usableEnergyCapacityCalendarDeg": 0.2,
"usableEnergyCapacityCycleDeg": 0.005,
"roundtripDCEfficiencyYear1": 95,
"roundtripDCEfficiencyCalendarDeg": 0.05,
"roundtripDCEfficiencyCycleDeg": 0.0002,
"hvacNoLoadLoss": 1.5,
"hvacFullLoadLoss": 10,
"mvNoLoadLoss": 0.2,
"mvFullLoadLoss": 0.7,
"mvCapacity": null,
"inverterEfficiency": 97,
"chargeAlgorithm": 0
},
"financialModelParameters": {
"bosInput": 0.5,
"developmentCostPerWatt": 0.1,
"moduleCostPerWatt": 0.3,
"itcPercentage": 26,
"yearOneEnergyAdjustmentPercentage": 0,
"ppaPrice": 25,
"ppaEscalatorPercentage": 0,
"omYearOne": 3.5,
"omYearlyEscalatorPercentage": 2.5,
"ppaDuration": 20,
"postPPAPrice": 50,
"postPPAPriceEscalationPercentage": 2,
"projectLife": 35,
"discountNPVPercentage": 6,
"itcEligibilityPercentage": 100,
"solarSalvageValuePercentage": 5,
"insuranceCapitalCostPercentage": 0.15,
"insuranceEscalatorPerYearPercentage": 0,
"bonusDepreciationRate": 0,
"stateTaxRate": 6,
"federalTaxRate": 21,
"solarLandLeaseCost": 0,
"solarLandLeaseEscalationPercentage": 0,
"solarPropertyTaxCost": 0,
"solarPropertyTaxEscalationPercentage": 0
},
"miscellaneousSettings": {
"predictionStatus": 1
},
"devPlatformSimulationSettings": {
"moduleType": 1,
"rackingSystem": 1,
"inverterType": 1,
"largeFormatModuleId": 223,
"shingledMonoPercId": 221,
"thinFilmId": 130,
"halfCellMonoPercId": 4956,
"bifacialId": 11,
"orientationTracker": 0,
"widthTracker": 0.02,
"heightTracker": 0.02,
"numOfPVModulesPerRowsTracker": 3,
"heightAboveGroundTracker": 3,
"pilesPerTableTracker": 5,
"pvModuleTiltMin": 0,
"pvModuleTiltMax": 2,
"tableAxisRotationMinTracker": -54,
"tableAxisRotationMaxTracker": 56,
"enableBacktrackingTracker": false,
"orientationMultistringTracker": 0,
"widthMultistringTracker": 0.02,
"maxWindSpeed": 100,
"motorTableGap": 1.87,
"gapBetweenTables": 0.247,
"heightAboveGroundStringTracker": 0.247,
"gapBetweenTrackers": 0.3,
"tableAxisRotationMinMultistringTracker": -54,
"tableAxisRotationMaxMultistringTracker": 56,
"enableBacktrackingMultistringTracker": false,
"orientationFixedTilt": 0,
"widthFixedTilt": 0.02,
"heightFixedTilt": 0.02,
"numOfPVModulesPerRowsFixedTilt": 3,
"heightAboveGroundFixedTilt": 3,
"pilesPerTableFixedTilt": 7,
"calculateModuleTiltAngle": false,
"moduleTiltAngle": 31,
"inverterCentralId": 739,
"powerFactorCentral": 2,
"ocdpRatingCentral": 320,
"maxNumOfTablesPerColumnCentral": 2,
"inverterStringId": 648,
"powerFactorString": 1,
"ocdpRatingString": 320,
"maxNumOfTablesPerColumnString": 5,
"scenarioAnalysisDefault": 1,
"dcacMinimum": 1,
"dcacMaximum": 2,
"dcacInterval": 1,
"gcrMinimum": 1,
"gcrMaximum": 2,
"gcrInterval": 1
},
"devPlatformSitePlanSettings": {
"widthPerimeterRoad": 666,
"setbackFromSolarArrays": 7.1,
"setbackFromSiteBoundary": 1.1,
"widthInternalRoad": 4,
"setbackA": 7.1,
"setbackB": 2,
"setback": 2,
"widthLinearExclusion": 51,
"showLabels": false
}
}
'import requests
url = "https://api.plantpredict.terabase.energy/Company/DefaultSettings"
payload = {
"environmentalConditions": {
"id": 190,
"monthlySoilingLoss": 2,
"monthlyAlbedo": 0.2
},
"powerPlantBuilder": {
"acCollectionLoss": 1,
"dasLoad": 800,
"coolingLoad": 0,
"transformerHighSideVoltage": 34.5,
"transformerNoLoadLoss": 0.2,
"transformerFullLoadLoss": 0.7,
"powerFactor": 1,
"inverter_Id": 8279,
"dcacRatio": 1.2,
"dcWiringLossAtSTC": 1.5,
"dcHealth": 1,
"trackerLoadLoss": 2.028,
"minimumTrackingLimitAngleD": -60,
"maximumTrackingLimitAngleD": 60,
"structureShading": 5,
"module_Id": 224,
"dcFieldTrackingTypeEnum": 1,
"dcFieldBacktrackingType": 1,
"tiltAngle": None,
"gcr": 40,
"moduleOrientation": 1,
"azimuth": 180,
"modTempModel": 0,
"setback": 6.5,
"northSouthRoadWidth": 6.096011996927617,
"eastWestRoadWidth": 6.096011996927617
},
"simulationSettings": {
"errorModelAcc": 2.9,
"errorSensAcc": 5,
"errorIntAnnVar": 3,
"errorMonAcc": 2,
"errorSpaVar": 2,
"transpositionModel": 1,
"diffuseDirectDecompModel": 3,
"useMeteoDni": False,
"airMassModel": 0,
"soilingModel": 0,
"modTempModel": 0,
"spectralShiftModel": 2,
"incAngleModel": 5,
"directBeamShadingModel": 5,
"degradationModel": 0,
"diffuseShadingModel": 1,
"defaultDegradation": 0,
"linearDegradationRate": 0.5,
"firstYearDegradation": False
},
"weatherAPISettings": {
"meteonormSettings": { "key": None },
"cprSettings": {
"apiKey": "wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth",
"userName": None,
"password": None,
"licenseNumber": None
},
"solarGISSettings": {
"key": "gkvf7nN9IhjcjP9Jp7Lf",
"tmyKey": "MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9",
"version": 2
}
},
"essSettings": {
"factor": 0.9,
"usableEnergyCapacityCalendarDeg": 0.2,
"usableEnergyCapacityCycleDeg": 0.005,
"roundtripDCEfficiencyYear1": 95,
"roundtripDCEfficiencyCalendarDeg": 0.05,
"roundtripDCEfficiencyCycleDeg": 0.0002,
"hvacNoLoadLoss": 1.5,
"hvacFullLoadLoss": 10,
"mvNoLoadLoss": 0.2,
"mvFullLoadLoss": 0.7,
"mvCapacity": None,
"inverterEfficiency": 97,
"chargeAlgorithm": 0
},
"financialModelParameters": {
"bosInput": 0.5,
"developmentCostPerWatt": 0.1,
"moduleCostPerWatt": 0.3,
"itcPercentage": 26,
"yearOneEnergyAdjustmentPercentage": 0,
"ppaPrice": 25,
"ppaEscalatorPercentage": 0,
"omYearOne": 3.5,
"omYearlyEscalatorPercentage": 2.5,
"ppaDuration": 20,
"postPPAPrice": 50,
"postPPAPriceEscalationPercentage": 2,
"projectLife": 35,
"discountNPVPercentage": 6,
"itcEligibilityPercentage": 100,
"solarSalvageValuePercentage": 5,
"insuranceCapitalCostPercentage": 0.15,
"insuranceEscalatorPerYearPercentage": 0,
"bonusDepreciationRate": 0,
"stateTaxRate": 6,
"federalTaxRate": 21,
"solarLandLeaseCost": 0,
"solarLandLeaseEscalationPercentage": 0,
"solarPropertyTaxCost": 0,
"solarPropertyTaxEscalationPercentage": 0
},
"miscellaneousSettings": { "predictionStatus": 1 },
"devPlatformSimulationSettings": {
"moduleType": 1,
"rackingSystem": 1,
"inverterType": 1,
"largeFormatModuleId": 223,
"shingledMonoPercId": 221,
"thinFilmId": 130,
"halfCellMonoPercId": 4956,
"bifacialId": 11,
"orientationTracker": 0,
"widthTracker": 0.02,
"heightTracker": 0.02,
"numOfPVModulesPerRowsTracker": 3,
"heightAboveGroundTracker": 3,
"pilesPerTableTracker": 5,
"pvModuleTiltMin": 0,
"pvModuleTiltMax": 2,
"tableAxisRotationMinTracker": -54,
"tableAxisRotationMaxTracker": 56,
"enableBacktrackingTracker": False,
"orientationMultistringTracker": 0,
"widthMultistringTracker": 0.02,
"maxWindSpeed": 100,
"motorTableGap": 1.87,
"gapBetweenTables": 0.247,
"heightAboveGroundStringTracker": 0.247,
"gapBetweenTrackers": 0.3,
"tableAxisRotationMinMultistringTracker": -54,
"tableAxisRotationMaxMultistringTracker": 56,
"enableBacktrackingMultistringTracker": False,
"orientationFixedTilt": 0,
"widthFixedTilt": 0.02,
"heightFixedTilt": 0.02,
"numOfPVModulesPerRowsFixedTilt": 3,
"heightAboveGroundFixedTilt": 3,
"pilesPerTableFixedTilt": 7,
"calculateModuleTiltAngle": False,
"moduleTiltAngle": 31,
"inverterCentralId": 739,
"powerFactorCentral": 2,
"ocdpRatingCentral": 320,
"maxNumOfTablesPerColumnCentral": 2,
"inverterStringId": 648,
"powerFactorString": 1,
"ocdpRatingString": 320,
"maxNumOfTablesPerColumnString": 5,
"scenarioAnalysisDefault": 1,
"dcacMinimum": 1,
"dcacMaximum": 2,
"dcacInterval": 1,
"gcrMinimum": 1,
"gcrMaximum": 2,
"gcrInterval": 1
},
"devPlatformSitePlanSettings": {
"widthPerimeterRoad": 666,
"setbackFromSolarArrays": 7.1,
"setbackFromSiteBoundary": 1.1,
"widthInternalRoad": 4,
"setbackA": 7.1,
"setbackB": 2,
"setback": 2,
"widthLinearExclusion": 51,
"showLabels": False
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
environmentalConditions: {id: 190, monthlySoilingLoss: 2, monthlyAlbedo: 0.2},
powerPlantBuilder: {
acCollectionLoss: 1,
dasLoad: 800,
coolingLoad: 0,
transformerHighSideVoltage: 34.5,
transformerNoLoadLoss: 0.2,
transformerFullLoadLoss: 0.7,
powerFactor: 1,
inverter_Id: 8279,
dcacRatio: 1.2,
dcWiringLossAtSTC: 1.5,
dcHealth: 1,
trackerLoadLoss: 2.028,
minimumTrackingLimitAngleD: -60,
maximumTrackingLimitAngleD: 60,
structureShading: 5,
module_Id: 224,
dcFieldTrackingTypeEnum: 1,
dcFieldBacktrackingType: 1,
tiltAngle: null,
gcr: 40,
moduleOrientation: 1,
azimuth: 180,
modTempModel: 0,
setback: 6.5,
northSouthRoadWidth: 6.096011996927617,
eastWestRoadWidth: 6.096011996927617
},
simulationSettings: {
errorModelAcc: 2.9,
errorSensAcc: 5,
errorIntAnnVar: 3,
errorMonAcc: 2,
errorSpaVar: 2,
transpositionModel: 1,
diffuseDirectDecompModel: 3,
useMeteoDni: false,
airMassModel: 0,
soilingModel: 0,
modTempModel: 0,
spectralShiftModel: 2,
incAngleModel: 5,
directBeamShadingModel: 5,
degradationModel: 0,
diffuseShadingModel: 1,
defaultDegradation: 0,
linearDegradationRate: 0.5,
firstYearDegradation: false
},
weatherAPISettings: {
meteonormSettings: {key: null},
cprSettings: {
apiKey: 'wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth',
userName: null,
password: null,
licenseNumber: null
},
solarGISSettings: {
key: 'gkvf7nN9IhjcjP9Jp7Lf',
tmyKey: 'MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9',
version: 2
}
},
essSettings: {
factor: 0.9,
usableEnergyCapacityCalendarDeg: 0.2,
usableEnergyCapacityCycleDeg: 0.005,
roundtripDCEfficiencyYear1: 95,
roundtripDCEfficiencyCalendarDeg: 0.05,
roundtripDCEfficiencyCycleDeg: 0.0002,
hvacNoLoadLoss: 1.5,
hvacFullLoadLoss: 10,
mvNoLoadLoss: 0.2,
mvFullLoadLoss: 0.7,
mvCapacity: null,
inverterEfficiency: 97,
chargeAlgorithm: 0
},
financialModelParameters: {
bosInput: 0.5,
developmentCostPerWatt: 0.1,
moduleCostPerWatt: 0.3,
itcPercentage: 26,
yearOneEnergyAdjustmentPercentage: 0,
ppaPrice: 25,
ppaEscalatorPercentage: 0,
omYearOne: 3.5,
omYearlyEscalatorPercentage: 2.5,
ppaDuration: 20,
postPPAPrice: 50,
postPPAPriceEscalationPercentage: 2,
projectLife: 35,
discountNPVPercentage: 6,
itcEligibilityPercentage: 100,
solarSalvageValuePercentage: 5,
insuranceCapitalCostPercentage: 0.15,
insuranceEscalatorPerYearPercentage: 0,
bonusDepreciationRate: 0,
stateTaxRate: 6,
federalTaxRate: 21,
solarLandLeaseCost: 0,
solarLandLeaseEscalationPercentage: 0,
solarPropertyTaxCost: 0,
solarPropertyTaxEscalationPercentage: 0
},
miscellaneousSettings: {predictionStatus: 1},
devPlatformSimulationSettings: {
moduleType: 1,
rackingSystem: 1,
inverterType: 1,
largeFormatModuleId: 223,
shingledMonoPercId: 221,
thinFilmId: 130,
halfCellMonoPercId: 4956,
bifacialId: 11,
orientationTracker: 0,
widthTracker: 0.02,
heightTracker: 0.02,
numOfPVModulesPerRowsTracker: 3,
heightAboveGroundTracker: 3,
pilesPerTableTracker: 5,
pvModuleTiltMin: 0,
pvModuleTiltMax: 2,
tableAxisRotationMinTracker: -54,
tableAxisRotationMaxTracker: 56,
enableBacktrackingTracker: false,
orientationMultistringTracker: 0,
widthMultistringTracker: 0.02,
maxWindSpeed: 100,
motorTableGap: 1.87,
gapBetweenTables: 0.247,
heightAboveGroundStringTracker: 0.247,
gapBetweenTrackers: 0.3,
tableAxisRotationMinMultistringTracker: -54,
tableAxisRotationMaxMultistringTracker: 56,
enableBacktrackingMultistringTracker: false,
orientationFixedTilt: 0,
widthFixedTilt: 0.02,
heightFixedTilt: 0.02,
numOfPVModulesPerRowsFixedTilt: 3,
heightAboveGroundFixedTilt: 3,
pilesPerTableFixedTilt: 7,
calculateModuleTiltAngle: false,
moduleTiltAngle: 31,
inverterCentralId: 739,
powerFactorCentral: 2,
ocdpRatingCentral: 320,
maxNumOfTablesPerColumnCentral: 2,
inverterStringId: 648,
powerFactorString: 1,
ocdpRatingString: 320,
maxNumOfTablesPerColumnString: 5,
scenarioAnalysisDefault: 1,
dcacMinimum: 1,
dcacMaximum: 2,
dcacInterval: 1,
gcrMinimum: 1,
gcrMaximum: 2,
gcrInterval: 1
},
devPlatformSitePlanSettings: {
widthPerimeterRoad: 666,
setbackFromSolarArrays: 7.1,
setbackFromSiteBoundary: 1.1,
widthInternalRoad: 4,
setbackA: 7.1,
setbackB: 2,
setback: 2,
widthLinearExclusion: 51,
showLabels: false
}
})
};
fetch('https://api.plantpredict.terabase.energy/Company/DefaultSettings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.plantpredict.terabase.energy/Company/DefaultSettings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'environmentalConditions' => [
'id' => 190,
'monthlySoilingLoss' => 2,
'monthlyAlbedo' => 0.2
],
'powerPlantBuilder' => [
'acCollectionLoss' => 1,
'dasLoad' => 800,
'coolingLoad' => 0,
'transformerHighSideVoltage' => 34.5,
'transformerNoLoadLoss' => 0.2,
'transformerFullLoadLoss' => 0.7,
'powerFactor' => 1,
'inverter_Id' => 8279,
'dcacRatio' => 1.2,
'dcWiringLossAtSTC' => 1.5,
'dcHealth' => 1,
'trackerLoadLoss' => 2.028,
'minimumTrackingLimitAngleD' => -60,
'maximumTrackingLimitAngleD' => 60,
'structureShading' => 5,
'module_Id' => 224,
'dcFieldTrackingTypeEnum' => 1,
'dcFieldBacktrackingType' => 1,
'tiltAngle' => null,
'gcr' => 40,
'moduleOrientation' => 1,
'azimuth' => 180,
'modTempModel' => 0,
'setback' => 6.5,
'northSouthRoadWidth' => 6.096011996927617,
'eastWestRoadWidth' => 6.096011996927617
],
'simulationSettings' => [
'errorModelAcc' => 2.9,
'errorSensAcc' => 5,
'errorIntAnnVar' => 3,
'errorMonAcc' => 2,
'errorSpaVar' => 2,
'transpositionModel' => 1,
'diffuseDirectDecompModel' => 3,
'useMeteoDni' => false,
'airMassModel' => 0,
'soilingModel' => 0,
'modTempModel' => 0,
'spectralShiftModel' => 2,
'incAngleModel' => 5,
'directBeamShadingModel' => 5,
'degradationModel' => 0,
'diffuseShadingModel' => 1,
'defaultDegradation' => 0,
'linearDegradationRate' => 0.5,
'firstYearDegradation' => false
],
'weatherAPISettings' => [
'meteonormSettings' => [
'key' => null
],
'cprSettings' => [
'apiKey' => 'wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth',
'userName' => null,
'password' => null,
'licenseNumber' => null
],
'solarGISSettings' => [
'key' => 'gkvf7nN9IhjcjP9Jp7Lf',
'tmyKey' => 'MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9',
'version' => 2
]
],
'essSettings' => [
'factor' => 0.9,
'usableEnergyCapacityCalendarDeg' => 0.2,
'usableEnergyCapacityCycleDeg' => 0.005,
'roundtripDCEfficiencyYear1' => 95,
'roundtripDCEfficiencyCalendarDeg' => 0.05,
'roundtripDCEfficiencyCycleDeg' => 0.0002,
'hvacNoLoadLoss' => 1.5,
'hvacFullLoadLoss' => 10,
'mvNoLoadLoss' => 0.2,
'mvFullLoadLoss' => 0.7,
'mvCapacity' => null,
'inverterEfficiency' => 97,
'chargeAlgorithm' => 0
],
'financialModelParameters' => [
'bosInput' => 0.5,
'developmentCostPerWatt' => 0.1,
'moduleCostPerWatt' => 0.3,
'itcPercentage' => 26,
'yearOneEnergyAdjustmentPercentage' => 0,
'ppaPrice' => 25,
'ppaEscalatorPercentage' => 0,
'omYearOne' => 3.5,
'omYearlyEscalatorPercentage' => 2.5,
'ppaDuration' => 20,
'postPPAPrice' => 50,
'postPPAPriceEscalationPercentage' => 2,
'projectLife' => 35,
'discountNPVPercentage' => 6,
'itcEligibilityPercentage' => 100,
'solarSalvageValuePercentage' => 5,
'insuranceCapitalCostPercentage' => 0.15,
'insuranceEscalatorPerYearPercentage' => 0,
'bonusDepreciationRate' => 0,
'stateTaxRate' => 6,
'federalTaxRate' => 21,
'solarLandLeaseCost' => 0,
'solarLandLeaseEscalationPercentage' => 0,
'solarPropertyTaxCost' => 0,
'solarPropertyTaxEscalationPercentage' => 0
],
'miscellaneousSettings' => [
'predictionStatus' => 1
],
'devPlatformSimulationSettings' => [
'moduleType' => 1,
'rackingSystem' => 1,
'inverterType' => 1,
'largeFormatModuleId' => 223,
'shingledMonoPercId' => 221,
'thinFilmId' => 130,
'halfCellMonoPercId' => 4956,
'bifacialId' => 11,
'orientationTracker' => 0,
'widthTracker' => 0.02,
'heightTracker' => 0.02,
'numOfPVModulesPerRowsTracker' => 3,
'heightAboveGroundTracker' => 3,
'pilesPerTableTracker' => 5,
'pvModuleTiltMin' => 0,
'pvModuleTiltMax' => 2,
'tableAxisRotationMinTracker' => -54,
'tableAxisRotationMaxTracker' => 56,
'enableBacktrackingTracker' => false,
'orientationMultistringTracker' => 0,
'widthMultistringTracker' => 0.02,
'maxWindSpeed' => 100,
'motorTableGap' => 1.87,
'gapBetweenTables' => 0.247,
'heightAboveGroundStringTracker' => 0.247,
'gapBetweenTrackers' => 0.3,
'tableAxisRotationMinMultistringTracker' => -54,
'tableAxisRotationMaxMultistringTracker' => 56,
'enableBacktrackingMultistringTracker' => false,
'orientationFixedTilt' => 0,
'widthFixedTilt' => 0.02,
'heightFixedTilt' => 0.02,
'numOfPVModulesPerRowsFixedTilt' => 3,
'heightAboveGroundFixedTilt' => 3,
'pilesPerTableFixedTilt' => 7,
'calculateModuleTiltAngle' => false,
'moduleTiltAngle' => 31,
'inverterCentralId' => 739,
'powerFactorCentral' => 2,
'ocdpRatingCentral' => 320,
'maxNumOfTablesPerColumnCentral' => 2,
'inverterStringId' => 648,
'powerFactorString' => 1,
'ocdpRatingString' => 320,
'maxNumOfTablesPerColumnString' => 5,
'scenarioAnalysisDefault' => 1,
'dcacMinimum' => 1,
'dcacMaximum' => 2,
'dcacInterval' => 1,
'gcrMinimum' => 1,
'gcrMaximum' => 2,
'gcrInterval' => 1
],
'devPlatformSitePlanSettings' => [
'widthPerimeterRoad' => 666,
'setbackFromSolarArrays' => 7.1,
'setbackFromSiteBoundary' => 1.1,
'widthInternalRoad' => 4,
'setbackA' => 7.1,
'setbackB' => 2,
'setback' => 2,
'widthLinearExclusion' => 51,
'showLabels' => false
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.plantpredict.terabase.energy/Company/DefaultSettings"
payload := strings.NewReader("{\n \"environmentalConditions\": {\n \"id\": 190,\n \"monthlySoilingLoss\": 2,\n \"monthlyAlbedo\": 0.2\n },\n \"powerPlantBuilder\": {\n \"acCollectionLoss\": 1,\n \"dasLoad\": 800,\n \"coolingLoad\": 0,\n \"transformerHighSideVoltage\": 34.5,\n \"transformerNoLoadLoss\": 0.2,\n \"transformerFullLoadLoss\": 0.7,\n \"powerFactor\": 1,\n \"inverter_Id\": 8279,\n \"dcacRatio\": 1.2,\n \"dcWiringLossAtSTC\": 1.5,\n \"dcHealth\": 1,\n \"trackerLoadLoss\": 2.028,\n \"minimumTrackingLimitAngleD\": -60,\n \"maximumTrackingLimitAngleD\": 60,\n \"structureShading\": 5,\n \"module_Id\": 224,\n \"dcFieldTrackingTypeEnum\": 1,\n \"dcFieldBacktrackingType\": 1,\n \"tiltAngle\": null,\n \"gcr\": 40,\n \"moduleOrientation\": 1,\n \"azimuth\": 180,\n \"modTempModel\": 0,\n \"setback\": 6.5,\n \"northSouthRoadWidth\": 6.096011996927617,\n \"eastWestRoadWidth\": 6.096011996927617\n },\n \"simulationSettings\": {\n \"errorModelAcc\": 2.9,\n \"errorSensAcc\": 5,\n \"errorIntAnnVar\": 3,\n \"errorMonAcc\": 2,\n \"errorSpaVar\": 2,\n \"transpositionModel\": 1,\n \"diffuseDirectDecompModel\": 3,\n \"useMeteoDni\": false,\n \"airMassModel\": 0,\n \"soilingModel\": 0,\n \"modTempModel\": 0,\n \"spectralShiftModel\": 2,\n \"incAngleModel\": 5,\n \"directBeamShadingModel\": 5,\n \"degradationModel\": 0,\n \"diffuseShadingModel\": 1,\n \"defaultDegradation\": 0,\n \"linearDegradationRate\": 0.5,\n \"firstYearDegradation\": false\n },\n \"weatherAPISettings\": {\n \"meteonormSettings\": {\n \"key\": null\n },\n \"cprSettings\": {\n \"apiKey\": \"wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth\",\n \"userName\": null,\n \"password\": null,\n \"licenseNumber\": null\n },\n \"solarGISSettings\": {\n \"key\": \"gkvf7nN9IhjcjP9Jp7Lf\",\n \"tmyKey\": \"MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9\",\n \"version\": 2\n }\n },\n \"essSettings\": {\n \"factor\": 0.9,\n \"usableEnergyCapacityCalendarDeg\": 0.2,\n \"usableEnergyCapacityCycleDeg\": 0.005,\n \"roundtripDCEfficiencyYear1\": 95,\n \"roundtripDCEfficiencyCalendarDeg\": 0.05,\n \"roundtripDCEfficiencyCycleDeg\": 0.0002,\n \"hvacNoLoadLoss\": 1.5,\n \"hvacFullLoadLoss\": 10,\n \"mvNoLoadLoss\": 0.2,\n \"mvFullLoadLoss\": 0.7,\n \"mvCapacity\": null,\n \"inverterEfficiency\": 97,\n \"chargeAlgorithm\": 0\n },\n \"financialModelParameters\": {\n \"bosInput\": 0.5,\n \"developmentCostPerWatt\": 0.1,\n \"moduleCostPerWatt\": 0.3,\n \"itcPercentage\": 26,\n \"yearOneEnergyAdjustmentPercentage\": 0,\n \"ppaPrice\": 25,\n \"ppaEscalatorPercentage\": 0,\n \"omYearOne\": 3.5,\n \"omYearlyEscalatorPercentage\": 2.5,\n \"ppaDuration\": 20,\n \"postPPAPrice\": 50,\n \"postPPAPriceEscalationPercentage\": 2,\n \"projectLife\": 35,\n \"discountNPVPercentage\": 6,\n \"itcEligibilityPercentage\": 100,\n \"solarSalvageValuePercentage\": 5,\n \"insuranceCapitalCostPercentage\": 0.15,\n \"insuranceEscalatorPerYearPercentage\": 0,\n \"bonusDepreciationRate\": 0,\n \"stateTaxRate\": 6,\n \"federalTaxRate\": 21,\n \"solarLandLeaseCost\": 0,\n \"solarLandLeaseEscalationPercentage\": 0,\n \"solarPropertyTaxCost\": 0,\n \"solarPropertyTaxEscalationPercentage\": 0\n },\n \"miscellaneousSettings\": {\n \"predictionStatus\": 1\n },\n \"devPlatformSimulationSettings\": {\n \"moduleType\": 1,\n \"rackingSystem\": 1,\n \"inverterType\": 1,\n \"largeFormatModuleId\": 223,\n \"shingledMonoPercId\": 221,\n \"thinFilmId\": 130,\n \"halfCellMonoPercId\": 4956,\n \"bifacialId\": 11,\n \"orientationTracker\": 0,\n \"widthTracker\": 0.02,\n \"heightTracker\": 0.02,\n \"numOfPVModulesPerRowsTracker\": 3,\n \"heightAboveGroundTracker\": 3,\n \"pilesPerTableTracker\": 5,\n \"pvModuleTiltMin\": 0,\n \"pvModuleTiltMax\": 2,\n \"tableAxisRotationMinTracker\": -54,\n \"tableAxisRotationMaxTracker\": 56,\n \"enableBacktrackingTracker\": false,\n \"orientationMultistringTracker\": 0,\n \"widthMultistringTracker\": 0.02,\n \"maxWindSpeed\": 100,\n \"motorTableGap\": 1.87,\n \"gapBetweenTables\": 0.247,\n \"heightAboveGroundStringTracker\": 0.247,\n \"gapBetweenTrackers\": 0.3,\n \"tableAxisRotationMinMultistringTracker\": -54,\n \"tableAxisRotationMaxMultistringTracker\": 56,\n \"enableBacktrackingMultistringTracker\": false,\n \"orientationFixedTilt\": 0,\n \"widthFixedTilt\": 0.02,\n \"heightFixedTilt\": 0.02,\n \"numOfPVModulesPerRowsFixedTilt\": 3,\n \"heightAboveGroundFixedTilt\": 3,\n \"pilesPerTableFixedTilt\": 7,\n \"calculateModuleTiltAngle\": false,\n \"moduleTiltAngle\": 31,\n \"inverterCentralId\": 739,\n \"powerFactorCentral\": 2,\n \"ocdpRatingCentral\": 320,\n \"maxNumOfTablesPerColumnCentral\": 2,\n \"inverterStringId\": 648,\n \"powerFactorString\": 1,\n \"ocdpRatingString\": 320,\n \"maxNumOfTablesPerColumnString\": 5,\n \"scenarioAnalysisDefault\": 1,\n \"dcacMinimum\": 1,\n \"dcacMaximum\": 2,\n \"dcacInterval\": 1,\n \"gcrMinimum\": 1,\n \"gcrMaximum\": 2,\n \"gcrInterval\": 1\n },\n \"devPlatformSitePlanSettings\": {\n \"widthPerimeterRoad\": 666,\n \"setbackFromSolarArrays\": 7.1,\n \"setbackFromSiteBoundary\": 1.1,\n \"widthInternalRoad\": 4,\n \"setbackA\": 7.1,\n \"setbackB\": 2,\n \"setback\": 2,\n \"widthLinearExclusion\": 51,\n \"showLabels\": false\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.plantpredict.terabase.energy/Company/DefaultSettings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"environmentalConditions\": {\n \"id\": 190,\n \"monthlySoilingLoss\": 2,\n \"monthlyAlbedo\": 0.2\n },\n \"powerPlantBuilder\": {\n \"acCollectionLoss\": 1,\n \"dasLoad\": 800,\n \"coolingLoad\": 0,\n \"transformerHighSideVoltage\": 34.5,\n \"transformerNoLoadLoss\": 0.2,\n \"transformerFullLoadLoss\": 0.7,\n \"powerFactor\": 1,\n \"inverter_Id\": 8279,\n \"dcacRatio\": 1.2,\n \"dcWiringLossAtSTC\": 1.5,\n \"dcHealth\": 1,\n \"trackerLoadLoss\": 2.028,\n \"minimumTrackingLimitAngleD\": -60,\n \"maximumTrackingLimitAngleD\": 60,\n \"structureShading\": 5,\n \"module_Id\": 224,\n \"dcFieldTrackingTypeEnum\": 1,\n \"dcFieldBacktrackingType\": 1,\n \"tiltAngle\": null,\n \"gcr\": 40,\n \"moduleOrientation\": 1,\n \"azimuth\": 180,\n \"modTempModel\": 0,\n \"setback\": 6.5,\n \"northSouthRoadWidth\": 6.096011996927617,\n \"eastWestRoadWidth\": 6.096011996927617\n },\n \"simulationSettings\": {\n \"errorModelAcc\": 2.9,\n \"errorSensAcc\": 5,\n \"errorIntAnnVar\": 3,\n \"errorMonAcc\": 2,\n \"errorSpaVar\": 2,\n \"transpositionModel\": 1,\n \"diffuseDirectDecompModel\": 3,\n \"useMeteoDni\": false,\n \"airMassModel\": 0,\n \"soilingModel\": 0,\n \"modTempModel\": 0,\n \"spectralShiftModel\": 2,\n \"incAngleModel\": 5,\n \"directBeamShadingModel\": 5,\n \"degradationModel\": 0,\n \"diffuseShadingModel\": 1,\n \"defaultDegradation\": 0,\n \"linearDegradationRate\": 0.5,\n \"firstYearDegradation\": false\n },\n \"weatherAPISettings\": {\n \"meteonormSettings\": {\n \"key\": null\n },\n \"cprSettings\": {\n \"apiKey\": \"wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth\",\n \"userName\": null,\n \"password\": null,\n \"licenseNumber\": null\n },\n \"solarGISSettings\": {\n \"key\": \"gkvf7nN9IhjcjP9Jp7Lf\",\n \"tmyKey\": \"MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9\",\n \"version\": 2\n }\n },\n \"essSettings\": {\n \"factor\": 0.9,\n \"usableEnergyCapacityCalendarDeg\": 0.2,\n \"usableEnergyCapacityCycleDeg\": 0.005,\n \"roundtripDCEfficiencyYear1\": 95,\n \"roundtripDCEfficiencyCalendarDeg\": 0.05,\n \"roundtripDCEfficiencyCycleDeg\": 0.0002,\n \"hvacNoLoadLoss\": 1.5,\n \"hvacFullLoadLoss\": 10,\n \"mvNoLoadLoss\": 0.2,\n \"mvFullLoadLoss\": 0.7,\n \"mvCapacity\": null,\n \"inverterEfficiency\": 97,\n \"chargeAlgorithm\": 0\n },\n \"financialModelParameters\": {\n \"bosInput\": 0.5,\n \"developmentCostPerWatt\": 0.1,\n \"moduleCostPerWatt\": 0.3,\n \"itcPercentage\": 26,\n \"yearOneEnergyAdjustmentPercentage\": 0,\n \"ppaPrice\": 25,\n \"ppaEscalatorPercentage\": 0,\n \"omYearOne\": 3.5,\n \"omYearlyEscalatorPercentage\": 2.5,\n \"ppaDuration\": 20,\n \"postPPAPrice\": 50,\n \"postPPAPriceEscalationPercentage\": 2,\n \"projectLife\": 35,\n \"discountNPVPercentage\": 6,\n \"itcEligibilityPercentage\": 100,\n \"solarSalvageValuePercentage\": 5,\n \"insuranceCapitalCostPercentage\": 0.15,\n \"insuranceEscalatorPerYearPercentage\": 0,\n \"bonusDepreciationRate\": 0,\n \"stateTaxRate\": 6,\n \"federalTaxRate\": 21,\n \"solarLandLeaseCost\": 0,\n \"solarLandLeaseEscalationPercentage\": 0,\n \"solarPropertyTaxCost\": 0,\n \"solarPropertyTaxEscalationPercentage\": 0\n },\n \"miscellaneousSettings\": {\n \"predictionStatus\": 1\n },\n \"devPlatformSimulationSettings\": {\n \"moduleType\": 1,\n \"rackingSystem\": 1,\n \"inverterType\": 1,\n \"largeFormatModuleId\": 223,\n \"shingledMonoPercId\": 221,\n \"thinFilmId\": 130,\n \"halfCellMonoPercId\": 4956,\n \"bifacialId\": 11,\n \"orientationTracker\": 0,\n \"widthTracker\": 0.02,\n \"heightTracker\": 0.02,\n \"numOfPVModulesPerRowsTracker\": 3,\n \"heightAboveGroundTracker\": 3,\n \"pilesPerTableTracker\": 5,\n \"pvModuleTiltMin\": 0,\n \"pvModuleTiltMax\": 2,\n \"tableAxisRotationMinTracker\": -54,\n \"tableAxisRotationMaxTracker\": 56,\n \"enableBacktrackingTracker\": false,\n \"orientationMultistringTracker\": 0,\n \"widthMultistringTracker\": 0.02,\n \"maxWindSpeed\": 100,\n \"motorTableGap\": 1.87,\n \"gapBetweenTables\": 0.247,\n \"heightAboveGroundStringTracker\": 0.247,\n \"gapBetweenTrackers\": 0.3,\n \"tableAxisRotationMinMultistringTracker\": -54,\n \"tableAxisRotationMaxMultistringTracker\": 56,\n \"enableBacktrackingMultistringTracker\": false,\n \"orientationFixedTilt\": 0,\n \"widthFixedTilt\": 0.02,\n \"heightFixedTilt\": 0.02,\n \"numOfPVModulesPerRowsFixedTilt\": 3,\n \"heightAboveGroundFixedTilt\": 3,\n \"pilesPerTableFixedTilt\": 7,\n \"calculateModuleTiltAngle\": false,\n \"moduleTiltAngle\": 31,\n \"inverterCentralId\": 739,\n \"powerFactorCentral\": 2,\n \"ocdpRatingCentral\": 320,\n \"maxNumOfTablesPerColumnCentral\": 2,\n \"inverterStringId\": 648,\n \"powerFactorString\": 1,\n \"ocdpRatingString\": 320,\n \"maxNumOfTablesPerColumnString\": 5,\n \"scenarioAnalysisDefault\": 1,\n \"dcacMinimum\": 1,\n \"dcacMaximum\": 2,\n \"dcacInterval\": 1,\n \"gcrMinimum\": 1,\n \"gcrMaximum\": 2,\n \"gcrInterval\": 1\n },\n \"devPlatformSitePlanSettings\": {\n \"widthPerimeterRoad\": 666,\n \"setbackFromSolarArrays\": 7.1,\n \"setbackFromSiteBoundary\": 1.1,\n \"widthInternalRoad\": 4,\n \"setbackA\": 7.1,\n \"setbackB\": 2,\n \"setback\": 2,\n \"widthLinearExclusion\": 51,\n \"showLabels\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.plantpredict.terabase.energy/Company/DefaultSettings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"environmentalConditions\": {\n \"id\": 190,\n \"monthlySoilingLoss\": 2,\n \"monthlyAlbedo\": 0.2\n },\n \"powerPlantBuilder\": {\n \"acCollectionLoss\": 1,\n \"dasLoad\": 800,\n \"coolingLoad\": 0,\n \"transformerHighSideVoltage\": 34.5,\n \"transformerNoLoadLoss\": 0.2,\n \"transformerFullLoadLoss\": 0.7,\n \"powerFactor\": 1,\n \"inverter_Id\": 8279,\n \"dcacRatio\": 1.2,\n \"dcWiringLossAtSTC\": 1.5,\n \"dcHealth\": 1,\n \"trackerLoadLoss\": 2.028,\n \"minimumTrackingLimitAngleD\": -60,\n \"maximumTrackingLimitAngleD\": 60,\n \"structureShading\": 5,\n \"module_Id\": 224,\n \"dcFieldTrackingTypeEnum\": 1,\n \"dcFieldBacktrackingType\": 1,\n \"tiltAngle\": null,\n \"gcr\": 40,\n \"moduleOrientation\": 1,\n \"azimuth\": 180,\n \"modTempModel\": 0,\n \"setback\": 6.5,\n \"northSouthRoadWidth\": 6.096011996927617,\n \"eastWestRoadWidth\": 6.096011996927617\n },\n \"simulationSettings\": {\n \"errorModelAcc\": 2.9,\n \"errorSensAcc\": 5,\n \"errorIntAnnVar\": 3,\n \"errorMonAcc\": 2,\n \"errorSpaVar\": 2,\n \"transpositionModel\": 1,\n \"diffuseDirectDecompModel\": 3,\n \"useMeteoDni\": false,\n \"airMassModel\": 0,\n \"soilingModel\": 0,\n \"modTempModel\": 0,\n \"spectralShiftModel\": 2,\n \"incAngleModel\": 5,\n \"directBeamShadingModel\": 5,\n \"degradationModel\": 0,\n \"diffuseShadingModel\": 1,\n \"defaultDegradation\": 0,\n \"linearDegradationRate\": 0.5,\n \"firstYearDegradation\": false\n },\n \"weatherAPISettings\": {\n \"meteonormSettings\": {\n \"key\": null\n },\n \"cprSettings\": {\n \"apiKey\": \"wsr27ry83#T5B$HLZN3upBTO2iG$Dp1lcVEov13euxbnrS9HhGsRelQ0AIyjUKth\",\n \"userName\": null,\n \"password\": null,\n \"licenseNumber\": null\n },\n \"solarGISSettings\": {\n \"key\": \"gkvf7nN9IhjcjP9Jp7Lf\",\n \"tmyKey\": \"MDAxLnNnMnwzMTM1NS5sM2l2aHpnZnVHLkhuL2xhSVNLd1kxY3QyTlR4M1RpeHl1N3dnSDhOT3d3Y1B1Q1ZWcDdhMlE9\",\n \"version\": 2\n }\n },\n \"essSettings\": {\n \"factor\": 0.9,\n \"usableEnergyCapacityCalendarDeg\": 0.2,\n \"usableEnergyCapacityCycleDeg\": 0.005,\n \"roundtripDCEfficiencyYear1\": 95,\n \"roundtripDCEfficiencyCalendarDeg\": 0.05,\n \"roundtripDCEfficiencyCycleDeg\": 0.0002,\n \"hvacNoLoadLoss\": 1.5,\n \"hvacFullLoadLoss\": 10,\n \"mvNoLoadLoss\": 0.2,\n \"mvFullLoadLoss\": 0.7,\n \"mvCapacity\": null,\n \"inverterEfficiency\": 97,\n \"chargeAlgorithm\": 0\n },\n \"financialModelParameters\": {\n \"bosInput\": 0.5,\n \"developmentCostPerWatt\": 0.1,\n \"moduleCostPerWatt\": 0.3,\n \"itcPercentage\": 26,\n \"yearOneEnergyAdjustmentPercentage\": 0,\n \"ppaPrice\": 25,\n \"ppaEscalatorPercentage\": 0,\n \"omYearOne\": 3.5,\n \"omYearlyEscalatorPercentage\": 2.5,\n \"ppaDuration\": 20,\n \"postPPAPrice\": 50,\n \"postPPAPriceEscalationPercentage\": 2,\n \"projectLife\": 35,\n \"discountNPVPercentage\": 6,\n \"itcEligibilityPercentage\": 100,\n \"solarSalvageValuePercentage\": 5,\n \"insuranceCapitalCostPercentage\": 0.15,\n \"insuranceEscalatorPerYearPercentage\": 0,\n \"bonusDepreciationRate\": 0,\n \"stateTaxRate\": 6,\n \"federalTaxRate\": 21,\n \"solarLandLeaseCost\": 0,\n \"solarLandLeaseEscalationPercentage\": 0,\n \"solarPropertyTaxCost\": 0,\n \"solarPropertyTaxEscalationPercentage\": 0\n },\n \"miscellaneousSettings\": {\n \"predictionStatus\": 1\n },\n \"devPlatformSimulationSettings\": {\n \"moduleType\": 1,\n \"rackingSystem\": 1,\n \"inverterType\": 1,\n \"largeFormatModuleId\": 223,\n \"shingledMonoPercId\": 221,\n \"thinFilmId\": 130,\n \"halfCellMonoPercId\": 4956,\n \"bifacialId\": 11,\n \"orientationTracker\": 0,\n \"widthTracker\": 0.02,\n \"heightTracker\": 0.02,\n \"numOfPVModulesPerRowsTracker\": 3,\n \"heightAboveGroundTracker\": 3,\n \"pilesPerTableTracker\": 5,\n \"pvModuleTiltMin\": 0,\n \"pvModuleTiltMax\": 2,\n \"tableAxisRotationMinTracker\": -54,\n \"tableAxisRotationMaxTracker\": 56,\n \"enableBacktrackingTracker\": false,\n \"orientationMultistringTracker\": 0,\n \"widthMultistringTracker\": 0.02,\n \"maxWindSpeed\": 100,\n \"motorTableGap\": 1.87,\n \"gapBetweenTables\": 0.247,\n \"heightAboveGroundStringTracker\": 0.247,\n \"gapBetweenTrackers\": 0.3,\n \"tableAxisRotationMinMultistringTracker\": -54,\n \"tableAxisRotationMaxMultistringTracker\": 56,\n \"enableBacktrackingMultistringTracker\": false,\n \"orientationFixedTilt\": 0,\n \"widthFixedTilt\": 0.02,\n \"heightFixedTilt\": 0.02,\n \"numOfPVModulesPerRowsFixedTilt\": 3,\n \"heightAboveGroundFixedTilt\": 3,\n \"pilesPerTableFixedTilt\": 7,\n \"calculateModuleTiltAngle\": false,\n \"moduleTiltAngle\": 31,\n \"inverterCentralId\": 739,\n \"powerFactorCentral\": 2,\n \"ocdpRatingCentral\": 320,\n \"maxNumOfTablesPerColumnCentral\": 2,\n \"inverterStringId\": 648,\n \"powerFactorString\": 1,\n \"ocdpRatingString\": 320,\n \"maxNumOfTablesPerColumnString\": 5,\n \"scenarioAnalysisDefault\": 1,\n \"dcacMinimum\": 1,\n \"dcacMaximum\": 2,\n \"dcacInterval\": 1,\n \"gcrMinimum\": 1,\n \"gcrMaximum\": 2,\n \"gcrInterval\": 1\n },\n \"devPlatformSitePlanSettings\": {\n \"widthPerimeterRoad\": 666,\n \"setbackFromSolarArrays\": 7.1,\n \"setbackFromSiteBoundary\": 1.1,\n \"widthInternalRoad\": 4,\n \"setbackA\": 7.1,\n \"setbackB\": 2,\n \"setback\": 2,\n \"widthLinearExclusion\": 51,\n \"showLabels\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "The request is invalid.",
"modelState": {
"latitude": [
"The field Latitude must be between -90 and 90."
]
}
}"Project not found.""An error has occurred."