/v1/battery-bank
Battery bank for autonomy
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/offgrid-api/v1/battery-bank" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/offgrid-api/v1/battery-bank", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/offgrid-api/v1/battery-bank");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/offgrid-api/v1/battery-bank",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "Battery bank = (daily load × days of autonomy) ÷ (depth of discharge × round-trip efficiency), then ÷ the system voltage for amp-hours. The autonomy carries you through cloudy days, and the depth-of-discharge limit protects the cells — lead-acid likes ~50 %, lithium tolerates 80–100 %, which is why a lithium bank can be much smaller for the same usable energy. A 2 kWh/day load at 12 V with 2 days autonomy, 50 % DoD and 85 % efficiency needs ~785 Ah.",
"inputs": {
"daily_load_wh": 2000,
"days_autonomy": 2,
"system_voltage_v": 12,
"battery_efficiency_pct": 85,
"depth_of_discharge_pct": 50
},
"usable_capacity_wh": 4000,
"required_capacity_ah": 784.3,
"required_capacity_wh": 9412
},
"meta": {
"timestamp": "2026-06-07T08:18:04.964Z",
"request_id": "05ef1364-47eb-4254-a417-b37c4b297b57"
},
"status": "ok",
"message": "Battery bank",
"success": true
}