{
  "name": "Generator runtime JSON endpoint",
  "description": "Returns generator hours, fuel gallons, tank runtime, load percentage, and practical overload/run-window warnings from battery gap and charger assumptions.",
  "publisher": {
    "name": "OffGridRVHub",
    "url": "https://www.offgridrvhub.com"
  },
  "source": {
    "endpoint": "https://www.offgridrvhub.com/tools/api/generator-runtime.json",
    "fullCalculator": "https://www.offgridrvhub.com/tools/generator-runtime-calculator",
    "assumptions": "https://www.offgridrvhub.com/tools/calculator-assumptions",
    "documentation": "https://www.offgridrvhub.com/tools/calculator-api"
  },
  "caveat": "This is a planning estimate for RV education and comparison. It is not electrical, plumbing, safety, or installation advice.",
  "input": {
    "daysOffGrid": 5,
    "dailyEnergyGapWh": 1800,
    "batteryVoltage": 12,
    "chargerAmps": 45,
    "generatorRatedWatts": 2200,
    "otherAcLoadsWatts": 300,
    "fuelTankGallons": 1.1,
    "fuelBurnGallonsPerHour": 0.18,
    "availableGeneratorHoursPerDay": 2.5
  },
  "result": {
    "effectiveChargeWatts": 443,
    "chargerAcDrawWatts": 659,
    "totalAcLoadWatts": 959,
    "generatorLoadPercent": 44,
    "generatorHeadroomWatts": 1241,
    "dailyRuntimeHours": 4.1,
    "dailyFuelGallons": 0.74,
    "tripFuelGallons": 3.7,
    "tankRuntimeHours": 6.1,
    "daysPerTank": 1.5,
    "fitsRunWindow": false,
    "overloadRisk": false,
    "verdictTitle": "The generator window is short for this daily gap",
    "verdictDetail": "At about 443W of effective DC charging, the daily gap takes about 4.1 hours, which is longer than the entered 2.5-hour run window.",
    "recommendedNextMove": "Reduce the daily energy gap, increase safe charger output, add solar, or plan a longer legal run window before relying on the generator.",
    "watchOuts": [
      "Fuel burn varies by generator model, altitude, temperature, eco-mode behavior, charger profile, and AC loads running at the same time.",
      "Battery charging can taper near the target SOC, so generator time is usually most efficient for bulk recovery instead of final-percent topping."
    ]
  }
}