Skip to content
Fourohtwo

Which vehicles of a fleet could be electrified

ort.halowerk.com/v1/fleet-ev-fit

Which vehicles of a fleet could be electrified: per vehicle the share of operating days an EV covers on one charge, required battery for the 95th-percentile day, overnight recharge time at the depot, with every assumption listed. For each vehicle and day: energy need = km × consumption × (1 + winter uplift); usable energy = usable battery × (1 − degradation) × (1 − reserve). A day is covered if ne

BaseAnswering
POSThttps://ort.halowerk.com/v1/fleet-ev-fit

Uptime100% of 4 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://ort.halowerk.com/v1/fleet-ev-fit", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"ev":{"charging_power_kw":22,"consumption_kwh_per_100km":25,"usable_battery_kwh":100},"vehicles":[{"daily_km":[200,250,310],"depot_dwell_hours":12,"id":"BOR-AB 123"}]}),
});
console.log(await res.json());

Example input

{
  "ev": {
    "charging_power_kw": 22,
    "consumption_kwh_per_100km": 25,
    "usable_battery_kwh": 100
  },
  "vehicles": [
    {
      "daily_km": [
        200,
        250,
        310
      ],
      "depot_dwell_hours": 12,
      "id": "BOR-AB 123"
    }
  ]
}