Aller au contenu
GET /v1/temperature

Temperature from resistance

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/rtd-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/rtd-api/v1/temperature" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rtd-api/v1/temperature", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rtd-api/v1/temperature");
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/rtd-api/v1/temperature",
    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": "Going from a measured resistance back to temperature inverts the Callendar–Van Dusen equation: above 0 °C it solves analytically as T = (−A + √(A² − 4B(1 − R/R₀))) ÷ 2B; below 0 °C the cubic term forces an iterative solution. This is exactly what a transmitter or data logger does with the bridge reading — mind the lead-wire resistance, which a 3- or 4-wire connection cancels out so it does not read as extra temperature.",
        "inputs": {
            "r0_ohm": 100,
            "resistance_ohm": 138.5055
        },
        "temp_c": 100
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:00.621Z",
        "request_id": "a611806c-8cb9-4dbf-90b5-18a6a218b158"
    },
    "status": "ok",
    "message": "Temperature",
    "success": true
}