Aller au contenu
GET /v1/charging

RC transient

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/capacitor-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}