Skip to main content

Measurements

warning

Important Notes

When selecting an aggregation, there are currently three options:

  1. '' (empty string) means there won't be any aggregation
  2. hour will take the hourly aggregation as average
  3. day will take daily aggregation as average.

If no aggregation is selected ('' empty string), the calculation of grades from 1-6 is not possible for ALL indicators, including aqi, as there is no scientific basis to grade this data on.

For other aggregation types (hour or day), the calculation of grades is included for all indicators except t and rh.

info

The API now supports timezone-based daily aggregation for sensor measurements. This feature allows clients to request data aggregated according to a specific timezone's day boundaries, rather than being limited to UTC.

How It Works

When requesting daily aggregated data, you can now specify a timezone parameter to define which timezone's day boundaries should be used for aggregation. The system will:

  1. Use hourly data as the source for daily aggregation
  2. Group the hourly data by day according to the specified timezone
  3. Calculate daily averages based on these timezone-specific day boundaries
  4. Return the aggregated data with timestamps at midnight in the specified timezone

The timezone parameter only affects daily aggregation (aggregation=day). All timestamps in the response are still in UTC format, but they represent midnight in the specified timezone.