/v1/counterweight
Counterweight from car and load
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/elevator-api/v1/counterweight" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/elevator-api/v1/counterweight", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/elevator-api/v1/counterweight");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/elevator-api/v1/counterweight",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "The counterweight is set to the empty car plus a fraction of the rated load — the overbalance, typically 40–50 % (45 % is common). At that load the car and counterweight balance and the motor barely works; lighter or heavier loads tip the balance one way and the motor makes up the difference. So a 1,000 kg car rated for 1,000 kg at 45 % overbalance uses a 1,450 kg counterweight, and the machine is sized for the worst-case imbalance, not the full load.",
"inputs": {
"balance_pct": 45,
"car_weight_kg": 1000,
"rated_load_kg": 1000
},
"overbalance_pct": 45,
"counterweight_kg": 1450
},
"meta": {
"timestamp": "2026-06-07T08:17:57.726Z",
"request_id": "e26e6358-9715-4f6d-a38d-c795b253e640"
},
"status": "ok",
"message": "Counterweight",
"success": true
}