Skip to content
Fourohtwo

Applies a transparent heuristic

iot.halowerk.com/v1/battery-degradation

Applies a transparent heuristic: cycle fade scales with equivalent full cycles and depth-of-discharge exponent; calendar fade scales with square-root time and a temperature factor. Coefficients are caller supplied or declared defaults. This is not cell-chemistry validation, warranty advice or a safety prognosis.

BaseAnswering
POSThttps://iot.halowerk.com/v1/battery-degradation

Uptime100% of 3 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://iot.halowerk.com/v1/battery-degradation", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"average_depth_of_discharge_percent":70,"average_temperature_c":28,"calendar_days":730,"calendar_fade_per_sqrt_year_percent":1.8,"cycle_fade_per_full_cycle_percent":0.012,"equivalent_full_cycles":450,"initial_capacity_ah":100}),
});
console.log(await res.json());

Example input

{
  "average_depth_of_discharge_percent": 70,
  "average_temperature_c": 28,
  "calendar_days": 730,
  "calendar_fade_per_sqrt_year_percent": 1.8,
  "cycle_fade_per_full_cycle_percent": 0.012,
  "equivalent_full_cycles": 450,
  "initial_capacity_ah": 100
}