Vai al contenuto
GET /v1/battery-bank

Battery bank for autonomy

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/offgrid-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}