# Solar Generation Observations – Secondary-Measure Weighted Mean

> Solar Generation Observations – Secondary-Measure Weighted Mean is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-17).

Computes a secondary-measure weighted mean over a batch of solar generation observation records, weighting one numeric field by another.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ar-analytics-solar-generation-weighted-average?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solar-generation-observations-secondary-measure-weighted-mean-cf7bc52b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_37LWMSqNNSW1Ofs0OPZXQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability solar-generation-observations-secondary-measure-weighted-mean-cf7bc52b -d '<json body>'
```

Example prompt: Calculate the irradiance-weighted mean of generation_kwh for my solar arrays using these daily readings: array group-a generated 10 kWh with irradiance 200 W/m² on 2025-06-01, 15 kWh with 350 W/m² on 2025-06-02, and group-b generated 20 kWh with 400 W/m² on 2025-06-01 — I want the weighted mean for the generation_kwh field.

## When to prefer this

Choose this endpoint when you need a fast, local descriptive statistic — specifically a secondary-measure weighted mean — over a bounded batch of solar generation observations (up to 200 records) without requiring external enrichment, forecasts, or complex analytics pipelines. It is ideal when you already have clean solar generation and irradiance data and simply need the weighted average computed reliably and cheaply at $0.01 per call.

## Known failure modes

- Missing required fields (row_id, solar_array, date, generation_kwh, irradiance_w_m2) cause validation errors
- Submitting more than 200 rows exceeds the maxItems limit and will be rejected
- Invalid date format (not YYYY-MM-DD) causes schema validation failure
- Null values in both the target field and weight field may produce undefined or null weighted mean
- Selecting an invalid field enum value other than generation_kwh or irradiance_w_m2 returns an error
- Payment of 0.01 USDC not fulfilled results in 402 Payment Required response

## How this service works

Solar generation observations - Secondary-measure weighted mean: Secondary-measure weighted mean for Solar generation observations. Up to 200 supplied typed records. Local descriptive analytics; no enrichment or forecast. One of 25 new profiles across 20 shared operations in this industry. 0.01 USDC includes one bounded secondary-measure weighted mean report.

## Output

Returns a bounded secondary-measure weighted mean report for the supplied solar generation records, giving a single aggregated weighted mean value for the chosen numeric field (generation_kwh or irradiance_w_m2), computed locally without external enrichment or forecasting.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "solar_array",
     "date",
     "generation_kwh",
     "irradiance_w_m2"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "solar_array": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "generation_kwh": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "irradiance_w_m2": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "solar_array": "group-a",
     "generation_kwh": 10,
     "irradiance_w_m2": 1
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "solar_array": "group-b",
     "generation_kwh": 20,
     "irradiance_w_m2": 2
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "solar_array": "group-a",
     "generation_kwh": 15,
     "irradiance_w_m2": 3
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "solar_array": "group-b",
     "generation_kwh": 30,
     "irradiance_w_m2": 4
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "generation_kwh",
    "irradiance_w_m2"
   ],
   "type": "string",
   "default": "generation_kwh"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solar-generation-observations-secondary-measure-weighted-mean-cf7bc52b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
