DEV Community

Nilesh H. Thipe
Nilesh H. Thipe

Posted on

ClearHale: Beyond AQI Numbers — Making Air Quality Easier to Understand

ClearHale: Beyond AQI Numbers — Making Air Quality Easier to Understand

Building something useful is always more interesting when it solves a real-world problem.

I'm excited to share ClearHale, my project for PromptWars Virtual – Challenge 6: Urban Air Quality Assistant, organised by Hack2skill and Google for Developers.

The idea started with a simple observation:

Knowing the AQI number isn't enough. People also need to understand what it means for their daily lives and what they can actually do about it.

This becomes especially important for families with children, elderly members, pregnant women and people with respiratory or heart conditions.

I wanted to build something that could bridge that gap.

What is ClearHale?

ClearHale is an air-quality companion designed for Indian families.

It turns air-quality data into practical, personalised guidance instead of simply displaying pollution numbers.

It helps answer everyday questions:

  • Is it a good time to go outside?
  • What precautions should my family take today?
  • What can I do if I cannot afford an air purifier?
  • How should recommendations change for children or elderly family members?

What can you do with ClearHale?

1. Live Air Quality Information

ClearHale uses OpenAQ v3 for nearby measured readings when fresh station data is available. Otherwise, it falls back to clearly labelled Open-Meteo estimates.

Every reading includes its data source and timestamp, so users can understand where the information comes from.

2. Personalised Family Guidance

Different people have different needs when it comes to air pollution.

ClearHale provides tailored recommendations for:

  • Children
  • Elderly people
  • Pregnant women
  • People with asthma or heart conditions
  • Outdoor workers

The aim is to make recommendations relevant to the people who actually need them.

3. Practical Recommendations for Every Budget

Not everyone can afford expensive air-quality solutions.

That's why ClearHale categorises recommendations into three levels:

  • Free: Actions that cost nothing.
  • Low-cost: Affordable improvements for everyday life.
  • If you can afford: Additional solutions for those with a bigger budget.

The goal is to make clean-air guidance accessible to families with different financial situations.

4. Ask Air Coach

Users can ask questions about pollution, understand recommendations and get contextual explanations through the conversational assistant.

Instead of searching through complicated information, they can simply ask questions in natural language.

5. Multilingual Voice Assistance

ClearHale supports voice input and spoken responses in Hindi, Marathi, Bengali, Tamil, Telugu and English.

This makes the application more accessible to people who are more comfortable communicating in their preferred language.

6. Shareable Air Quality Cards

Users can generate visual air-quality updates that can be saved and shared with family members through WhatsApp.

These cards make it easier to communicate local pollution levels, precautions and recommended actions without requiring everyone to install the application.

Other Features

ClearHale also includes:

  • Indoor exposure simulation
  • Breathing exercises and myth-busting
  • Severe air-quality notifications
  • Bring Your Own Gemini API Key (BYOK)
  • Light and dark themes
  • Installable Progressive Web App (PWA)

How I Built It

Here is the technology stack behind ClearHale:

Component Technology
Frontend Next.js and TypeScript
Air-quality data OpenAQ v3 and Open-Meteo
Language models Groq (Llama 3.3 70B) and Google Gemini
Authentication Optional Firebase sign-in
Deployment Vercel
Application format Progressive Web App

Where Does Generative AI Fit In?

One thing I was particularly careful about was not making an LLM responsible for everything.

Air-quality information can influence people's everyday health and safety decisions. I didn't want a language model inventing readings, calculating pollution levels or independently deciding safety thresholds.

So I separated the responsibilities.

The rules engine handles:

  • Air-quality calculations and classification
  • Safety thresholds
  • Recommendation ranking
  • Indoor exposure calculations
  • Action prioritisation

Generative AI handles:

  • Personalised explanations
  • Conversational interactions
  • Multilingual responses
  • The personalised Next 2 Hours decision
  • Contextual answers through Ask Air Coach

This separation keeps important calculations and rules deterministic while allowing natural, contextual interactions.

How I Used AI During Development

I also used AI tools throughout the development process.

They helped me explore implementation approaches, organise scientific research into actionable guidance, generate test cases, identify contradictions in recommendations and improve parts of the application.

I experimented with prompts, reviewed the generated outputs and refined the implementation based on testing.

One important lesson: getting an LLM to generate an answer is easy. Making sure that answer is relevant, consistent and grounded in reliable information takes much more effort.

Improving the Deployed Version

I didn't want to stop at getting the initial version working. I continued refining the application.

Some of the improvements included:

  • Code quality: Improved readability, structure, performance and reliability.
  • Severe-air notifications: Added notifications for severe air-quality conditions.
  • BYOK support: Introduced Bring Your Own Gemini API Key, giving users more control over their Gemini API usage.
  • Better GenAI integration: Improved contextual responses and personalised interactions.
  • User experience: Refined recommendations and application interactions.

I also spent time testing the application and checking that recommendations remained grounded in the available information.

What I Learned

This project taught me that building a useful product involves much more than connecting APIs and creating a good-looking interface.

A few things stood out:

  • Live data needs proper fallbacks and transparent source attribution.
  • Personalised recommendations should consider people's actual circumstances.
  • Generative AI needs clear boundaries, especially when dealing with safety-related information.
  • Accessibility and affordability should be considered from the beginning.
  • Good engineering is also about deciding what shouldn't be handled by AI.

Most importantly, I learned to focus on the problem first and choose technology based on what the product actually needs.

Try ClearHale

The application is live, and I'd genuinely appreciate your feedback.

Special thanks to Hack2skill and Google for Developers for organising PromptWars Virtual, and to Sabisachi (Subject Matter Expert for Challenge 6) for sharing valuable insights about the problem statement.

Building ClearHale has been a valuable learning experience. There is still plenty I'd like to improve, and I'm looking forward to working on it further.

If you explore the application, I'd love to hear what you think!


Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

The strongest decision in this whole build is the split you made between the rules engine and the LLM, Nilesh — keeping safety thresholds, classifications and recommendation ranking deterministic, and letting the model only explain and converse. For something that shapes health decisions, that boundary matters far more than any feature list, and most builders would have handed the whole thing to the model. The budget tiers landed the same way for me: asking "what can I do if I cannot afford an air purifier?" shows you designed for real families, not a demo. And the multilingual voice support in six languages is the kind of accessibility detail that usually gets cut first. When the OpenAQ station reading and the Open-Meteo estimate disagree, how do you decide what to show — and do you tell the user which source won?