weather-CurrentAirQualityView

 (AX-3.6 and later) The Current Air Quality View provides color indication of the current air quality, along with a (text) description of the air quality state. It is an available view of each WeatherReport (locale) in the station’s WeatherService, as well as a WeatherReport’s CurrentConditions child. Usage is intended for WeatherReports using a NwsWeatherProvider.

Figure 35. Current Air Quality View example


Current Air Quality View example

On a Px page, to add this view, drag a WeatherReport (locale) or its Current child onto the Px canvas. In the resulting Make Widget dialog, select: Workbench View, then: Current Air Quality View.

You can resize the rectangle provided for the view, and optionally change the widget’s “showAqi” property from the default false to true, as shown in Figure 36.

Figure 36. Setting “showAqi” property to true to display numerical AQI


Setting “showAqi” property to true to display numerical AQI

If “showAqi” is true, the numerical AQI value (air quality index) displays after the air quality state text descriptor, in parentheses. The example “moderate” air quality state above relates to an AQI of 63.

Possible air quality states are listed in Table 1, by default descriptor, color, and AQI range.

Table 1. Air Quality View (Current and Forecast) states, colors, AQI range

State Descriptor Color (EPA) AQI range
Good Green 0 - 50
Moderate Yellow 51 - 100
USG* Orange 101 - 150
Unhealthy Red 151 - 200
Very Unhealthy Purple 201 - 300
Hazardous Maroon 301 - 500
Unknown White unknown

*USG is “Unhealthy for Sensitive Groups”. State descriptors are editable in the weather.lexicon file.

At the time of this document, more information about the Air Quality Index (AQI) can be found on the U.S. Environmental Protection Agency’s website at http://www.airnow.gov/index.cfm?aqbasics.aqi

CautionAir quality data is preliminary and unvalidated; it should not be used to formulate or support regulation, ascertain trends, act as guidance, or support any other government or public decision-making.

Also starting in AX-3.6, a WeatherReport’s CurrentConditions component and each of its Forecast components have two related properties: “Ozone” and “Particulate Matter”.