Skip to content
Fourohtwo

agent402.tools/api/degree-days-calc

Heating, cooling and growing degree days from a daily temperature series you supply: daily means, or min/max pairs (the mean is their midpoint). Heating and cooling use one base (default 18 °C or 65 °F); growing degree days use their own base (default 10 °C or 50 °F) and an optional upper cutoff.

BasePolygonArbitrumMonadAvalancheSei+5Answering
POSThttps://agent402.tools/api/degree-days-calc

Uptime100% of 1 check 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://agent402.tools/api/degree-days-calc", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"base":18,"days":[{"max":19,"min":8},{"max":24,"min":12},{"max":29,"min":15}],"growingBase":10}),
});
console.log(await res.json());

Example input

{
  "base": 18,
  "days": [
    {
      "max": 19,
      "min": 8
    },
    {
      "max": 24,
      "min": 12
    },
    {
      "max": 29,
      "min": 15
    }
  ],
  "growingBase": 10
}