Air trend
air_trendAnalyze trends in PM2.5, CO2, and VOC levels over a specified time window. Get per-pollutant statistics, rate of change, and natural-language insights to answer questions about air quality changes.
Instructions
Windowed trend analysis for PM2.5 / CO2 / VOC. Pulls past measurements from AirGradient (public or owned) and returns per-pollutant mean / median / min / max / current / rate_of_change_per_hour / peak_at / trough_at / time_above_threshold_minutes plus an optional natural-language observation (only when the data supports one). Pass pollutant: 'all' (default) for an array of per-pollutant trends plus worst_pollutant per current WHO/ASHRAE bands. Use this for 'is PM2.5 climbing?' / 'was CO2 stable overnight?' / 'when did VOC spike?' kinds of questions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Analysis window in hours (1-168, default 24). | |
| pollutant | No | Pollutant to analyze. Default 'all'. | |
| locationId | No | AirGradient locationId. Falls back to WELLNESS_AIR_DEFAULT_LOCATION. | |
| response_format | No | Output shape. Defaults to json. |