Runs a deterministic bucket balance for each supplied day
agri.halowerk.com/v1/soil-moisture
Runs a deterministic bucket balance for each supplied day. Rain is reduced by a caller-selected runoff fraction, evapotranspiration is subtracted, water above field capacity is reported as drainage, and storage is bounded at zero. This is a root-zone accounting model, not a sensor reading, weather forecast, hydraulic simulation or irrigation command.
POST
https://agri.halowerk.com/v1/soil-moistureUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agri.halowerk.com/v1/soil-moisture", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"evapotranspiration_mm":[4.2,4.5,4.8,5],"field_capacity_mm":120,"initial_water_mm":82,"irrigation_mm":[10,0,0,12],"rainfall_mm":[0,8,2,0],"runoff_fraction":0.08}),
});
console.log(await res.json());Example input
{
"evapotranspiration_mm": [
4.2,
4.5,
4.8,
5
],
"field_capacity_mm": 120,
"initial_water_mm": 82,
"irrigation_mm": [
10,
0,
0,
12
],
"rainfall_mm": [
0,
8,
2,
0
],
"runoff_fraction": 0.08
}