weather-CurrentAirQualityView

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 39.   Current Air Quality View example
Image

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.

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

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 shown below, by default descriptor, color, and AQI range.

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

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

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

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

 CAUTION: Air 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. 

A WeatherReport’s CurrentConditions component and each of its Forecast components have two related properties: “Ozone” and “Particulate Matter”.