solar.halowerk.com/battery-cycle
Integrates the supplied current over time by the trapezoidal rule, so the result is only as good as the sampling interval; gaps longer than the stated max_gap_seconds are excluded and reported. Sign convention: positive current is charging, negative is discharging. Internal resistance is estimated from the largest current step in the series and is a rough figure, not a measurement under defined co
POST
https://solar.halowerk.com/battery-cycleUptime100% 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/battery-cycle", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"cells_in_series":4,"nominal_capacity_ah":100,"samples":[{"current_a":0,"t_s":0,"voltage_v":13.2},{"current_a":-5,"t_s":60,"voltage_v":13.1},{"current_a":-5,"t_s":120,"voltage_v":13}]}),
});
console.log(await res.json());Example input
{
"cells_in_series": 4,
"nominal_capacity_ah": 100,
"samples": [
{
"current_a": 0,
"t_s": 0,
"voltage_v": 13.2
},
{
"current_a": -5,
"t_s": 60,
"voltage_v": 13.1
},
{
"current_a": -5,
"t_s": 120,
"voltage_v": 13
}
]
}