Skip to content
Fourohtwo

Daily energy balance and straight run-down from the figures supplied

solar.halowerk.com/autonomy-forecast

Daily energy balance and straight run-down from the figures supplied. Solar input is caller data in watt-hours per day; nothing is fetched and no weather is assumed. Time to empty means time to the reserve floor, not to zero. Idle draw and conversion efficiency apply to AC loads only. Ageing, temperature and Peukert behaviour are not modelled, which matters for lead acid far more than for LiFePO4.

BaseAnswering
POSThttps://solar.halowerk.com/autonomy-forecast

Uptime100% of 5 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://solar.halowerk.com/autonomy-forecast", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"battery":{"capacity_wh":2400,"reserve_soc_percent":20,"soc_percent":80},"daily_solar_input_wh":300,"loads":[{"dc":true,"hours_per_day":24,"name":"router","watts":10}]}),
});
console.log(await res.json());

Example input

{
  "battery": {
    "capacity_wh": 2400,
    "reserve_soc_percent": 20,
    "soc_percent": 80
  },
  "daily_solar_input_wh": 300,
  "loads": [
    {
      "dc": true,
      "hours_per_day": 24,
      "name": "router",
      "watts": 10
    }
  ]
}