avinash201199 / weather-app

Weather app with JavaScript and api
MIT License
86 stars 164 forks source link

Change AQI api and add AQI color index #237

Closed milan604 closed 11 months ago

milan604 commented 11 months ago

Component Name:

Updated script.js, style.css, lang/translation.js, and index.html file.

Summary/Motivation:

At present, method involves utilizing an API to retrieve air quality index (AQI) data based on latitude and longitude coordinates. However, I have encountered discrepancies in location data when obtaining latitude and longitude information through the OpenWeather service, particularly for certain cities. This pull request addresses this issue by proposing a shift in our AQI API usage, switching to a search API and incorporating the city name as a keyword. Additionally, I have also introduced a new label, 'Not Available,' translated into multiple languages, to indicate instances where the Air Quality Index data is unavailable for numerous locations. I've also implemented a color-coding system for the air quality label to enhance user experience by enabling quick status recognition without the need to read text.

Documentation:

Testing Strategy:

Dependencies:

None

Screenshots and GIF:

Screenshot 2023-10-02 at 11 41 14 AM Screenshot 2023-10-02 at 11 41 25 AM