This is a browser app built with HTML CSS and JavaScript. It uses Open Meteo APIs to show weather and air quality data for cities.
- Weather tab shows current temperature feels like humidity wind and condition
- Air Quality tab shows current US AQI PM2.5 PM10 CO NO2 and O3
- Local time and time zone are shown for each city card
- When Weather is active the app requests only weather fields from the weather endpoint
- When Air Quality is active the app requests only air quality fields from the air quality endpoint
- Switching tabs sends a new GET request for the selected tab
- City search uses Open Meteo geocoding to find city coordinates before adding a city
- The app starts with 4 default cities
- You can search and add any city
- Search suggestions appear while typing
- Suggestions close when you click outside the search area
- You can delete a city card
- Undo delete restores the last city removed
- Open the OAP folder
- Open index.html in your browser
- Use the Weather and Air Quality tabs to switch datasets
- Type a city name in the search box and click Add City
- Use Delete to remove a city and Undo delete to bring it back
-
Weather endpoint https://api.open-meteo.com/v1/forecast
-
Air quality endpoint https://air-quality-api.open-meteo.com/v1/air-quality
-
Geocoding endpoint for search and suggestions https://geocoding-api.open-meteo.com/v1/search