Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add Air Quality Index Calculator #631

Closed
4 of 7 tasks
Aarzookhunger opened this issue May 9, 2024 · 5 comments · Fixed by #823
Closed
4 of 7 tasks

[Feature] Add Air Quality Index Calculator #631

Aarzookhunger opened this issue May 9, 2024 · 5 comments · Fixed by #823
Assignees
Labels
calculator addition 📱 Addition of new calculator enhancement ✨ New feature or request gssoc GSSOC Open Source Program level3 Advanced task

Comments

@Aarzookhunger
Copy link
Contributor

Aarzookhunger commented May 9, 2024

Description

AQI -> Air Quality Index Level Calculator

Input: User enters the AQI number of their region.
Output: Based on the AQI number provided, the level of air quality is determined, along with the corresponding color indication.

  • Good (0-50): Green
  • Satisfactory (51-100): Yellow
  • Moderate (101-150): Orange
  • Unhealthy for sensitive groups (151-200): Red
  • Unhealthy (201-300): Purple
  • Hazardous (301-500+): Maroon

The output color reflects the range the AQI falls into, such as green for good air quality and yellow for satisfactory air quality.

Checks to be applied:
Keep a check on the input by the user the AQI must be greater than or equal to zero. Also keep a check on upper bound value.

Implementation :
A Javascript function will be created where in the parameter will be the AQI index and the level is returned after comparing with the metrices.
As this level is return another function is called with this level which gives the color indication. Now after getting both of these values, we can design the output display on the screen using CSS.

Screenshots

Get input from the user in somewhat this way. (The background color can be kept green to indicate living in good air quality or can be kept greyish as neutral input taking page.
Input

As an output the level of air quality along with color indication will be displayed.
Output

Checklist

  • I have checked the existing issues.
  • I follow Contributing Guidelines of this project.
  • I am a GSSOC'24 contributor.
  • I am a IWOC'24 contributor.
  • I am a JWOC'24 contributor.
  • I am a SWOC'24 contributor.

Code of Conduct

Copy link

github-actions bot commented May 9, 2024

Hey @Aarzookhunger, Welcome to the project CalcDiverse! 🎊
Thanks for opening an issue! 🙌 Please wait for the issue to be assigned. Happy Coding!! ✨

@Aarzookhunger Aarzookhunger changed the title AQI Level Calculator [FEATURE] AQI Level Calculator May 9, 2024
@amishah1110
Copy link

Hi team, I'd like to take on the task of implementing the AQI Level Calculator feature. I believe it aligns well with my skills and interests, and I'm excited to contribute to its development. Assigning this issue to me would be greatly appreciated.

Thanks!

@Aarzookhunger
Copy link
Contributor Author

Aarzookhunger commented May 10, 2024

@Rakesh9100
Kindly assign this task to me so that I can add the AQI Level Calculator to the website and code up my designed UI/UX as attached in the screenshots. Any changes or new additions are welcomed. I'll be more than glad to make my contribution in this project.
For GSSoC'24 contribution.

Thankyou.

@Rish-tech1
Copy link

I would like to work on this issue. Pls assign me this!!

@Rakesh9100
Copy link
Owner

Go ahead @Aarzookhunger

@Rakesh9100 Rakesh9100 added the gssoc GSSOC Open Source Program label May 19, 2024
@Rakesh9100 Rakesh9100 changed the title [FEATURE] AQI Level Calculator [Feature] Add AQI Level Calculator May 19, 2024
@Rakesh9100 Rakesh9100 changed the title [Feature] Add AQI Level Calculator [Feature] Add Air Quality Index Calculator May 22, 2024
@Rakesh9100 Rakesh9100 added enhancement ✨ New feature or request calculator addition 📱 Addition of new calculator level3 Advanced task labels May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
calculator addition 📱 Addition of new calculator enhancement ✨ New feature or request gssoc GSSOC Open Source Program level3 Advanced task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants