Most Florida homeowners either overwater their turfgrass—driving fungus, dollar weed, and unnecessary water bills—or accidentally water on restricted county days.
At Waves Pest Control in Southwest Florida, we built and open-sourced waves-lawn-tools (MIT licensed) to turn NOAA rainfall measurements, local weather forecasts, evapotranspiration, and University of Florida (UF/IFAS) irrigation guidance into exact weekly sprinkler minutes per zone.
- Try the calculator (free, no signup): Waves Lawn Watering Calculator
- Source code (JS & Python, MIT): github.com/wavespestcontrolfl/waves-lawn-tools
- PyPI package:
pip install waves-lawn-tools
How the irrigation math works
The core module (src/irrigation.js and its Python port in python/src/waves_lawn_tools/) has zero runtime dependencies and answers two concrete questions:
- How many inches per week does a zone apply? Using UF/IFAS typical application rates (~1.5 in/hr for spray heads and ~0.5 in/hr for rotors):
const { deriveIrrigationInchesPerWeek } = require('waves-lawn-tools'); deriveIrrigationInchesPerWeek({ runMinutes: 20, wateringDays: ['Sat'], systemType: 'spray', }); // => { inchesPerWeek: 0.5, runMinutes: 20, runsPerWeek: 1, headType: 'spray', rateInPerHr: 1.5, reason: null } - How should you adjust this week's schedule?
buildWeekPlan()compares the week's turf target (reference evapotranspiration x crop coefficient) against 7-day measured NOAA rainfall, the upcoming forecast, carryover surplus from a wet week (capped at 0.5 in), and the legal county watering ceiling:
const { buildWeekPlan } = require('waves-lawn-tools'); buildWeekPlan({ targetInchesPerWeek: 0.75, lastWeekRainInches: 0.2, forecastRainInches: 0, season: 'peak', restriction: { maxDaysPerWeek: 1 }, systemType: ['spray'], rainKnown: true, rainOnlyCarryover: true, }); // => { action: 'run', events: 1, depthInches: 0.75, minutesPerEvent: 30, legalMaxEvents: 1, ... } One deliberate design choice: decline instead of guessing. Drip zones water landscape beds rather than turf, and ZIP codes without a verified local watering policy return action: 'unavailable' rather than inventing a watering rule.
Parity testing across JavaScript and Python
Because both the web widget and Python/Streamlit tooling share the same logic, python/tests/fixtures/make_fixtures.js runs the JavaScript core across more than 1,500 input combinations and asserts that the Python port reproduces every output identically.
Free public JSON API (no key, open CORS)
We also expose a free read-only API so developers, Home Assistant users, and local sites can fetch weekly watering plans, seasonal pest forecasts, and county-level pest pressure data directly:
const { getWateringPlan, getPestForecast } = require('waves-lawn-tools'); const plan = await getWateringPlan({ zip: '34205', head: 'spray', minutes: 20 }); console.log(plan.text.headline); const forecast = await getPestForecast({ location: 'bradenton-fl' }); console.log(forecast.pests.map((p) => `${p.label}: ${p.level}`)); OpenAPI 3.0 specs and a Postman collection live in the repository's docs/ directory, and the calculator also ships with an embeddable widget and a static Hugging Face Space.
Questions or suggestions on the irrigation model or Florida county ordinances are welcome in the GitHub issues.
