instead of trusting AQI category value 1-5 from the API, calculate the US AQI standard and display that.
the first hard part is going to be understanding the formula, because there is no I or C in the data. what you mean??? 馃槅馃槄
https://openweathermap.org/api/air-pollution
https://openweathermap.org/air-pollution-index-levels
For pollutants concentration recalculation into AQI equation and table below is used:

where:
I = the Air Quality index,
C = the pollutant concentration,
Clow= the concentration breakpoint that is 鈮,
Chigh= the concentration breakpoint that is 鈮,
Ilow= the index breakpoint corresponding to Clow,
Ihigh= the index breakpoint corresponding to Chigh.
instead of trusting AQI category value 1-5 from the API, calculate the US AQI standard and display that.
the first hard part is going to be understanding the formula, because there is no I or C in the data. what you mean??? 馃槅馃槄
https://openweathermap.org/api/air-pollution
https://openweathermap.org/air-pollution-index-levels
For pollutants concentration recalculation into AQI equation and table below is used:

where:
I = the Air Quality index,
C = the pollutant concentration,
Clow= the concentration breakpoint that is 鈮,
Chigh= the concentration breakpoint that is 鈮,
Ilow= the index breakpoint corresponding to Clow,
Ihigh= the index breakpoint corresponding to Chigh.