What it is
OHPG is a browser-based hydroponic nutrient solution calculator.
Given a target element profile (N, P, K, Ca, Mg, S, micros) and target EC, it finds
the salt gram amounts and assembles a two-part A/B concentrate.
Everything runs in the browser — no backend, no sign-up.
Profiles are stored in localStorage; share a recipe via a short URL with packed state.
Demo: progl.github.io/ohpg
Features
- Macros: N, P, K, Ca, Mg, S
- Micros: Fe, Mn, Zn, Cu, B, Mo
- Universal 4×4 Gauss solver — works with any four salts
- A/B concentrate separation (prevents precipitation)
- EC / PPM two-way conversion
- Ratios: NH4/NO3, K/N, Ca/Mg with deviation highlighting
- Built-in presets: tomato, cucumber, lettuce, strawberry
- Boost presets: +20% / +50% for different growth phases
- Balance diagnostics with recommendations
- Share links via lz-string in URL
Stack
Alpine.js, Vanilla JS (ES2020), Bootstrap 5, GitHub Pages