WeatherBlox - Air Quality
Air QualityObject
aeris.wxblox.views.AirQualityData Usage
/airquality (1)
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.

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:
| Option | Description | Default |
|---|---|---|
dataType | Type: string () | |
request | Type: object () | |
request.filter | Type: string () | |
request.p | Type: string () | |
enabled | Type: boolean () | |
metric | Type: boolean () | |
renderNoData | Type: boolean () | |
request | Type: object () | |
Methods
The following methods are supported by instances of this view:
rendered()show()hide()params()setUnits(:number)units()enabled()setMetric(:boolean)load(:object)refresh()isMetric()Events
The following events are triggered by instances of this view:
renderrender:beforerender:afterload:startload:doneload:errorchange:units