JSON probe output schema

Stable JSON keys, temperature units, humidity fields, and average computation for dashboard consumers.

Downstream systems—Python relays, Astro fetch routes, and dashboard mappings—all assume a stable JSON shape. Changing keys without updating consumers breaks probe labels and history inserts silently.

Canonical document


        {
  "temp": {
    "0": { "f": 38.2, "c": 3.4, "h": 41.0 },
    "1": { "f": 36.8, "c": 2.7, "h": 43.5 },
    "avg": { "f": 37.5, "c": 3.1, "h": 42.2 }
  }
}
      

Field meanings

  • Numeric keys match firmware probe indices and dashboard mapping entries.
  • f / c: Fahrenheit and Celsius for the same sample.
  • h: Relative humidity percent for that probe.
  • avg: Mean across healthy probes only; omit or freeze if one sensor is offline.

Consumers

The home page fetch reads this structure for public cards. Python feeds may cache the same payload. Map labels via probe mapping.