We have found examples where the AQI shown on the summary page does not match the AQI shown on the city page.
For example Budapest at 31/07/2024 18:00 is showing an Ozone value of 4 and forecast of 2 on the summary page:
But the city page at this time shows an overall AQI of 3 at this time, which is incorrect:
It appears that currently:
On the summary we take the average of each pollutant, find the AQI from this, then pick the highest
On the city page we find the AQI of each measuring station, and average those
Of these the first is correct.
Whilst investigating I've noticed that the overall AQI difference displayed for Budapest may also be wrong, it looks like it should be showing 4 and 2 as higher AQI numbers but is instead showing 1 and 3, this could be a symptom of the previous bug and will be investigated here.
EDIT : The above is actually working as expected. Where there is a draw on the AQI difference in the first instance we prefer to show the data where the forecast is above the measured.
We have found examples where the AQI shown on the summary page does not match the AQI shown on the city page.
For example Budapest at 31/07/2024 18:00 is showing an Ozone value of 4 and forecast of 2 on the summary page:
But the city page at this time shows an overall AQI of 3 at this time, which is incorrect:
It appears that currently:
Of these the first is correct.
Whilst investigating I've noticed that the overall AQI difference displayed for Budapest may also be wrong, it looks like it should be showing 4 and 2 as higher AQI numbers but is instead showing 1 and 3, this could be a symptom of the previous bug and will be investigated here. EDIT : The above is actually working as expected. Where there is a draw on the AQI difference in the first instance we prefer to show the data where the forecast is above the measured.