feat: add weather-AQI correlation analytics with severity-rated insights - #1097
Open
karan-chaos wants to merge 5 commits into
Open
feat: add weather-AQI correlation analytics with severity-rated insights#1097karan-chaos wants to merge 5 commits into
karan-chaos wants to merge 5 commits into
Conversation
Add a comprehensive data export module that lets users download AQI trend data as CSV or JSON, preview and copy formatted text reports with health guidance, generate shareable city links, and filter data by time range with an interactive preview table and trend chart. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Add a multi-city AQI comparison module with ranked leaderboards, pollutant-level breakdown tables with WHO-limit exceedance flags, health-risk categorisation groups, bar chart visualisation, CSV export, and a formatted text report with clipboard copy. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Add a cumulative pollution exposure tracker that records AQI readings on each refresh cycle, computes daily/weekly summaries, calculates a rolling 7-day health score with animated ring, classifies exposure risk levels, generates personalised recommendations, and supports CSV export with clipboard copy and history reset. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Add a user-configurable alert rules engine that evaluates incoming AQI data against custom thresholds with operator and time-window conditions, frequency throttling, severity levels, browser notification support, preset quick-add rules, and full CRUD management persisted in localStorage. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@karan-chaos is attempting to deploy a commit to the Aditya Mahajan's projects Team on Vercel. A member of the Team first needs to authorize it. |
Thank You for Your Contribution! 🎉Hi @karan-chaos, Thank you for opening this Pull Request and contributing to our project. We truly appreciate your efforts.
The maintainer @Aditya8369 will review your PR shortly! Happy Contributing! 🚀 |
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.
Summary
#1096
This PR adds weather and air quality correlation analytics to identify
relationships between weather conditions and major AQI pollutants.
Changes
Correlation Analysis
Added Pearson correlation calculations between:
Interactive Correlation Matrix
Added a color-coded correlation matrix for quickly identifying:
Interactive Charts
Added toggleable visualization modes:
AQI Band Analysis
Added per-AQI-band weather breakdowns to compare temperature, humidity,
and wind patterns across different air quality levels.
Severity-Rated Insights
Added automatically generated insights with severity ratings based on
correlation strength and detected weather-pollutant patterns.
Technical Implementation
The feature follows existing project conventions:
Verification