Show Open-Meteo air quality in the weather panel - #11390
Open
loraque-git wants to merge 1 commit into
Open
Conversation
Add an AIR cell next to humid when the air-quality API returns US or European AQI. Reuse the same stored or wttr coordinates as the daily forecast fetch. The cell hides when there is nothing to show.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The weather popup already uses Open-Meteo for the daily forecast. It does not show air quality. Several community weather plugins add an AQI cell; stock
omarchy.weatherstill has none.What
When Open-Meteo's air-quality API returns a reading, the current-conditions row grows an AIR cell next to humid (US AQI with imperial units, European AQI with metric). Unhealthy-and-worse uses the urgent color. If the fetch fails or there is no index, the cell stays hidden — same as a missing forecast.
Coordinates are the same stored or wttr
nearest_areapair the daily forecast already uses (openMeteoCoordinatesinModel.js). Retry matches the daily forecast: three attempts, 2.5s apart.No extra bar icon, no new settings form. The cell is display-only.
Tests
bash test/shell.d/weather-test.sh— existing weather assertions plus:air-quality-api.open-meteo.comand labels the cell AIRTest plan