capabilities.work

Batch Ingest and Chart

A 2-step recipe with Adafruit IO. We can help you get access.

Recipe · 2 steps

Batch Ingest and Chart

Batch upload data records to a feed and retrieve aggregated chart data.

  1. Upload the full array of data records to the feed in a single batch create call.
  2. Retrieve aggregated chart data for the feed over the requested time window so the freshly ingested series can be rendered.
What you'll need to have ready
  • username: A valid Adafruit IO username.
  • aioKey: The Adafruit IO API key, sent in the X-AIO-Key header.
  • feedKey: The feed key to ingest data into and chart.
  • records: Array of data records, each with a required `value` and optional `created_at`, `lat`, `lon`, `ele`, and `epoch` fields.
  • hours: Number of hours of history the chart should cover (default 1).
  • resolution: Aggregation resolution in minutes (1, 5, 10, 30, 60, or 120).
For your developer

Arazzo workflow adafruit-io:batch-ingest-and-chart, 2 operations: batchCreateData → chartData. Specs on APIs.io.