Size a home or RV battery backup from a list of loads
saylorinnovations.com/api/energy/battery-backup
Size a home or RV battery backup from a list of loads: each appliance with its watts and hours of use per day gives the daily energy in watt-hours, the peak power, the battery capacity needed for the days of autonomy you want (with the usable depth of discharge of LiFePO4, lithium-ion, AGM or flooded batteries and the inverter efficiency), the inverter size with surge margin, the amp-hours at 12,
GET
https://saylorinnovations.com/api/energy/battery-backupUptime100% of 1 check in 30 days
30 days agoToday
Call it from an agent
curl -i "https://saylorinnovations.com/api/energy/battery-backup?loads=Fridge%3A150%3A8%3A600%7CRouter%3A12%3A24%7CLaptop%3A60%3A6%7CLED+lights%3A40%3A5%7CSump+pump%3A400%3A1%3A1200&battery=lifepo4&sun_hours=4&autonomy_days=1.5&system_voltage=24&existing_battery_kwh=5&inverter_efficiency_percent=90" # 402 Payment Required comes back with the price and where to pay.
Example input
{
"loads": "Fridge:150:8:600|Router:12:24|Laptop:60:6|LED lights:40:5|Sump pump:400:1:1200",
"battery": "lifepo4",
"sun_hours": "4",
"autonomy_days": "1.5",
"system_voltage": "24",
"existing_battery_kwh": "5",
"inverter_efficiency_percent": "90"
}