/v1/temperature
Temperature from resistance
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"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
}