Hydroponics API
Hydroponics and indoor-grow maths as an API, computed locally and deterministically — the nutrient-strength and grow-light numbers a grower dials in every day. The ec endpoint converts between electrical conductivity (EC in mS/cm) and the PPM/TDS reading on whichever scale a meter uses: the 500 (NaCl, US) scale turns EC 2.0 into 1000 ppm, the 700 (KCl) scale into 1400 ppm and the 640 (EU) scale into 1280 — the source of endless confusion between meters. The dli endpoint computes the Daily Light Integral, DLI = PPFD × photoperiod × 3600 ÷ 1,000,000, the total moles of light a crop gets in a day (leafy greens want about 12–17, fruiting crops 20–30+), and reverses it to the PPFD a fixture must deliver to hit a target DLI over a given day length. The reservoir endpoint balances a tank to a target EC: how much plain water to add to dilute a too-strong solution (W = V × (current/target − 1)), or how much concentrated stock to add to raise it. Everything is computed locally and deterministically, so it is instant and private. Ideal for hydroponics, vertical-farming, controlled-environment-agriculture, grow-room and smart-garden app developers, dosing and lighting tools, and horticulture education. Pure local computation — no key, no third-party service, instant. EC in mS/cm, volume in litres, PPFD in µmol/m²/s. Live, nothing stored. 3 compute endpoints. State your TDS scale; confirm with a calibrated meter.
api.oanor.com/hydroponics-api