CarbonLens is a web-based application that helps users understand air pollution levels in different cities in a simple and accessible way. The project focuses on presenting key air quality indicators in a clear format so that users can quickly get an overview of environmental conditions and learn about basic preventive measures.
Air pollution is a growing concern in many urban areas, and while pollution data is often available, it can be difficult for non-technical users to interpret. CarbonLens aims to bridge this gap by displaying commonly used air quality metrics such as PM2.5, NO₂, and the Air Quality Index (AQI) in a user-friendly interface. Instead of overwhelming users with raw datasets, the application focuses on clarity and awareness.
The website allows users to select a city from a dropdown menu and view its associated pollution data. Along with the numerical values, the application also displays basic preventive measures that individuals can follow to reduce exposure to polluted air and adopt more environment-conscious habits.
This project was developed as a full-stack web application and serves as the final project for CS50x: Introduction to Computer Science.
The following technologies and tools were used to build CarbonLens:
- Python with Flask for backend development and routing
- SQLite for data storage
- cs50.SQL library to interact with the database
- HTML with Jinja templates for rendering dynamic pages
- CSS for basic styling
- Git for version control
No external APIs or real-time data sources are used in the current version of the project.
The project follows a simple and organized folder structure: