🌤️ A Streamlit application that provides real-time air quality data and current temperature for major cities in Pakistan.
- Displays air quality index (AQI) levels for selected cities.
- Shows current temperature in Celsius.
- Provides recommendations based on AQI levels.
- User-friendly interface with city selection.
- Streamlit - For building the web application.
- Requests - For making API calls to fetch weather and air quality data.
- Pandas - For data manipulation and analysis.
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run the Streamlit application:
streamlit run weather.py
-
Open your web browser and go to
http://localhost:8501
to view the dashboard.
This application uses the OpenWeatherMap API. You will need to sign up for an API key and replace the placeholder in the code with your actual API key.
Contributions are welcome! Please feel free to submit a pull request or open an issue.
This project is licensed under the MIT License - see the LICENSE file for details.