API & MCP

Everything a person can do on Garden Watering Need, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Garden Watering Need

Estimates how much to water each garden bed over the next days: FAO-56 Penman–Monteith reference evapotranspiration from the MET Norway forecast, times the crop coefficient of each planting and its growth stage, minus the rain that reaches the roots — in millimetres and litres, with a suggested number of waterings.

Inputs of Garden Watering Need
FieldTypeDefaultDescription
place (required)text"52.47, 13.40"Place (latitude, longitude). Decimal degrees such as “52.47, 13.40”. Rounded to 0.01° (about 1 km).
timeZonetext"Europe/Berlin"Time zone of the place
daysinteger7Days ahead
plantingstable[{"bed":"Bed 1","crop":"tomato","areaM2":0.36},{"bed":"Bed 1","crop":"bush-bean"Plantings

Example request

Berlin: tomatoes, beans and lettuce

curl -X POST https://hearthwateringneed.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"place":"52.52, 13.40","timeZone":"Europe/Berlin","days":7,"plantings":[{"bed":"Bed 1","crop":"tomato","areaM2":0.36},{"bed":"Bed 1","crop":"bush-bean","areaM2":0.54},{"bed":"Bed 2","crop":"lettuce","areaM2":1.2}]}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "hearth-watering-need": { "type": "http", "url": "https://hearthwateringneed.usefulweb.site/mcp" }
  }
}