Documentation sections
Solar Panel Sizing Calculator
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug solar-panel-sizing. Calculate solar panel wattage, battery capacity, and charge controller current for off-grid photovoltaic systems based on load and sun hours
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| loadPowernumber | W | at least 0.1 | 100 | Continuous power consumption of the load |
| loadHoursnumber | h | 0.1 … 24 | 24 | Hours a day the load runs. 24 = always on. |
| peakSunHoursnumber | hr | at least 0.1 | 5 | Average peak sun hours per day for your location |
| systemVoltagenumber | V | at least 1 | 12 | System Voltage |
| batteryCapacitynumber | Ah | at least 1 | 100 | The battery you have or plan to fit: compared with the required capacity as the days it lasts at 50% depth of discharge |
| daysAutonomynumber | none | 1 … 30 | 3 | Number of cloudy days the system must operate without sun |
| numLoadsnumber | none | 0 … 9 | 0 | Loads beside the base load, each with its own power and hours a day (0–9) |
| load1Powernumber | W | 0 … 10000 | 50 | Power additional load 1 draws while it runs |
| load1Hoursnumber | h | 0 … 24 | 4 | Hours a day additional load 1 runs |
| load2Powernumber | W | 0 … 10000 | 50 | Power additional load 2 draws while it runs |
| load2Hoursnumber | h | 0 … 24 | 4 | Hours a day additional load 2 runs |
| load3Powernumber | W | 0 … 10000 | 50 | Power additional load 3 draws while it runs |
| load3Hoursnumber | h | 0 … 24 | 4 | Hours a day additional load 3 runs |
| load4Powernumber | W | 0 … 10000 | 50 | Power additional load 4 draws while it runs |
| load4Hoursnumber | h | 0 … 24 | 4 | Hours a day additional load 4 runs |
| load5Powernumber | W | 0 … 10000 | 50 | Power additional load 5 draws while it runs |
| load5Hoursnumber | h | 0 … 24 | 4 | Hours a day additional load 5 runs |
| load6Powernumber | W | 0 … 10000 | 50 | Power additional load 6 draws while it runs |
| load6Hoursnumber | h | 0 … 24 | 4 | Hours a day additional load 6 runs |
| load7Powernumber | W | 0 … 10000 | 50 | Power additional load 7 draws while it runs |
| load7Hoursnumber | h | 0 … 24 | 4 | Hours a day additional load 7 runs |
| load8Powernumber | W | 0 … 10000 | 50 | Power additional load 8 draws while it runs |
| load8Hoursnumber | h | 0 … 24 | 4 | Hours a day additional load 8 runs |
| load9Powernumber | W | 0 … 10000 | 50 | Power additional load 9 draws while it runs |
| load9Hoursnumber | h | 0 … 24 | 4 | Hours a day additional load 9 runs |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| energyPerDay | Wh | Energy Per Day |
| panelWattageheadline | W | Required Panel Wattage |
| panelCurrent | A | Panel Current |
| batteryAh | Ah | Required Battery Capacity |
| chargeControllerAmps | A | Charge Controller Current |
| batteryAutonomyDays | days | Days the entered battery carries the load at 50% depth of discharge; reaching the days of autonomy needs the required capacity |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.