Zum Inhalt springen
GET /v1/charging

RC transient

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/capacitor-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/capacitor-api/v1/charging" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/capacitor-api/v1/charging", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/capacitor-api/v1/charging");
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/capacitor-api/v1/charging",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Charging V(t)=Vs(1−e^(−t/RC)); discharging V(t)=V₀·e^(−t/RC). τ=RC; ≈63 % at 1τ, ≈99 % at 5τ.",
        "inputs": {
            "mode": "charging",
            "capacitance_f": 0.0001,
            "resistance_ohm": 1000
        },
        "time_s": 0.1,
        "percent": 63.212056,
        "voltage_v": 7.585446706,
        "time_constant_s": 0.1,
        "time_constant_ms": 100
    },
    "meta": {
        "timestamp": "2026-06-05T03:08:59.900Z",
        "request_id": "d9ee5b93-35fb-4fc8-8ab9-d01528937f1b"
    },
    "status": "ok",
    "message": "RC transient",
    "success": true
}