Daily Energy Peak Interval

Convert fixed-duration meter intervals into average demand and identify the peak interval and daily recorded energy.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout

POST a JSON request to /daily-energy-peak-interval/v1/check with an x402 V2 client.

Worked example

Request

{
  "minutes": 15,
  "intervals": [
    {
      "start": 0,
      "watt_hours": 600
    },
    {
      "start": 15,
      "watt_hours": 900
    }
  ]
}

Result

{
  "total_watt_hours": 1500,
  "maximum_average_watts": 3600,
  "peak_starts": [
    15
  ],
  "missing_intervals": 0
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter