/v1/steinhart-hart
Steinhart-Hart
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/thermistor-api/v1/steinhart-hart" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/thermistor-api/v1/steinhart-hart", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/thermistor-api/v1/steinhart-hart");
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/thermistor-api/v1/steinhart-hart",
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": "Steinhart-Hart: 1/T = A + B·ln R + C·(ln R)³. The most accurate NTC model; coefficients are fitted from three calibration points.",
"inputs": {
"a": 0.001009249522,
"b": 0.0002378405444,
"c": 2.019202697e-7,
"resistance_ohm": 10000
},
"temperature_c": 24.6813,
"temperature_k": 297.8313
},
"meta": {
"timestamp": "2026-06-05T11:30:38.830Z",
"request_id": "aab3284f-ba9e-41e5-b6b8-c0d34851ddc9"
},
"status": "ok",
"message": "Steinhart-Hart",
"success": true
}