80trust / 100

Soil Moisture

by agri.halowerk.com in Weather & location

x402 APIPassing, checked 3 h ago

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-moisture

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
133 ms typical, 141 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agri.halowerk.com/v1/soil-moisture" \
  -H "content-type: application/json" \
  -d '{"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}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagri.halowerk.com%2Fv1%2Fsoil-moisture
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
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402126 ms$0.003
7 h agoPassed402133 ms$0.003
10 h agoPassed402135 ms$0.003
14 h agoPassed402137 ms$0.003
18 h agoPassed402119 ms$0.003
21 h agoPassed402141 ms$0.003
25 h agoPassed402142 ms$0.003
28 h agoPassed402107 ms$0.003
34 h agoPassed40238 ms$0.003