This repository contains code for analyzing the weather conditions of a location using the OpenWeatherMap API. The application retrieves current weather data and displays it in a tabular format. It also provides a graphical representation of the 24-hour weather forecast for the specified location.
- Retrieves and displays the current weather conditions for a given city.
- Shows the description, temperature, humidity, and wind speed.
- Retrieves and displays a 24-hour weather forecast for the specified location.
- Tabulates the forecast data, including the timestamp and temperature.
- Plots a graph of the temperature variation over the next 24 hours.
- Install the necessary dependencies by running
pip install -r requirements.txt. - Obtain an API key from OpenWeatherMap by signing up on their website.
- Set your API key as an environment variable or directly in the code (
API_KEY = '<your-api-key>'). - Run the application by executing
python weather_application.py. - Access the application through the provided Streamlit link or by visiting
http://localhost:8501in your browser. - Enter the name of the city for which you want to analyze the weather conditions.
- The application will display the current weather information and the 24-hour forecast in both tabular and graphical formats.
Access the Weather Application using this Streamlit link: Weather Application
The application's background image is a dark purple texture, providing an aesthetically pleasing visual experience.
This project is licensed under the MIT License. Feel free to modify and use the code as per your needs.
Contributions to this repository are welcome. If you have any suggestions or improvements, please create a pull request or open an issue.
Enjoy exploring the weather conditions of different cities with this Python-based Weather Application!