Skip to Content
Air Quality

WeatherBlox - Air Quality

Object
aeris.wxblox.views.AirQuality
Data Usage

The AirQuality view displays current AQI data for a single location. Additionally, configuration options allow you to access the extended forecast and nearby station views.

Air Quality

Examples

Display current Air Quality Index data for London, UK:

const view = new aeris.wxblox.views.AirQuality('#wxblox'); view.load({ p: 'london,uk' });

Configuration

The following configuration options are supported by this view:

OptionDescriptionDefault
dataTypeType: string ()obs
requestType: object ()
request.filterType: string ()airnow
request.pType: string ()
enabledType: boolean ()true
metricType: boolean ()false
renderNoDataType: boolean ()true
requestType: object ()

Methods

The following methods are supported by instances of this view:

Events

The following events are triggered by instances of this view:

© 2026 Xweather (opens in a new tab)Terms of Service (opens in a new tab)Privacy Policy (opens in a new tab)