/v1/opening
Required valve opening
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/valveflow-api/v1/opening" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/valveflow-api/v1/opening", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/valveflow-api/v1/opening");
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/valveflow-api/v1/opening",
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": "Linear opening = Kv/Kvs. Equal-percentage opening = 1 + ln(Kv/Kvs)/ln(R). Aim for 20–80 % travel at normal flow.",
"inputs": {
"rated_kv": 20,
"operating_kv": 7.07,
"rangeability": 50
},
"kv_ratio": 0.3535,
"linear_opening_percent": 35.35,
"equal_percentage_opening_percent": 73.4186
},
"meta": {
"timestamp": "2026-06-04T18:38:26.001Z",
"request_id": "d90a89cb-4cd6-4e62-a3b9-33599f939f23"
},
"status": "ok",
"message": "Valve opening",
"success": true
}