Solar
Explore the Solar API endpoints.
POST/v1/solar/production
Get hourly solar production profile
Fetches a full-year (8760 hourly values) solar production simulation profile. Used by Studio to simulate solar panel output for a given configuration and location.
Required attributes
- Name
lat- Type
- number
- Description
Latitude of the installation
- Name
lon- Type
- number
- Description
Longitude of the installation
- Name
systemCapacityKw- Type
- number
- Description
Total system capacity in kW (DC)
- Name
tilt- Type
- number
- Description
Panel tilt angle in degrees (0-90)
- Name
azimuth- Type
- number
- Description
Panel azimuth in degrees (0-360, 180 = south)
Optional attributes
- Name
losses- Type
- number
- Description
System losses in percent (0-100). Default 14%.
- Name
moduleType- Type
- number
- Description
Module type: 0=Standard, 1=Premium, 2=Thin film. Default 0.
- Name
arrayType- Type
- number
- Description
Array type: 0=Fixed Open Rack, 1=Fixed Roof Mount, 2=1-Axis, 3=1-Axis Backtracking, 4=2-Axis. Default 1.
Response
Request
POST
/v1/solar/productioncurl -X POST https://api.enhub.nl/v1/solar/production \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"lat": 52.37,
"lon": 4.89,
"systemCapacityKw": 4,
"tilt": 35,
"azimuth": 180,
"losses": 14,
"moduleType": 0,
"arrayType": 1
}'
Response (201 Created)
{
"hourlyProductionKw": [
0
],
"annualProductionKwh": 3800,
"systemCapacityKw": 4
}