/v1/ec
EC ↔ PPM/TDS
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/hydroponics-api/v1/ec" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hydroponics-api/v1/ec", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hydroponics-api/v1/ec");
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/hydroponics-api/v1/ec",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"ppm": 1400,
"note": "PPM = EC(mS/cm) × scale factor. The 500 (NaCl, US) scale gives EC 2.0 → 1000 ppm; the 700 (KCl) scale → 1400 ppm; the 640 (EU) scale → 1280 ppm.",
"inputs": {
"scale": "700",
"factor": 700
},
"ec_ms_cm": 2,
"ec_microsiemens": 2000
},
"meta": {
"timestamp": "2026-06-05T21:48:45.071Z",
"request_id": "0e64f99a-bda8-4e29-8f13-8a00c393c79d"
},
"status": "ok",
"message": "EC/PPM conversion",
"success": true
}