The Weather Forecast Application is a web-based tool providing current and future weather information. Leveraging APIs like Geoapify for geolocation services and OpenWeatherMap for weather data, this app features an intuitive interface with autocomplete functionality for searching city names.
Here are some screenshots showcasing the interface:
Access a live preview of the application, hosted on Google Cloud: Weather Forecast Application Preview
- City Name: User input for the desired city's weather information.
- Geocoding: Utilizing the Geoapify API to convert city names into geographical coordinates.
- Weather Data Retrieval: Fetching weather data from OpenWeatherMap API using coordinates.
- Weather Information: Displaying data such as temperature, humidity, and wind speed for the selected location.
To set up the project locally:
- Clone the Repository:
git clone https://github.com/mdkwe/Forecast.git
cd Forecast
- Create a Virtual Environment:
- Unix/MacOS:
python3 -m venv venv source venv/bin/activate
- Windows:
python -m venv venv venv\\Scripts\\activate
- Install Dependencies:
pip install -r requirements.txt
- Create
.env
files in the app folder for API Keys:
API_KEY_WEATHER = '[Your OpenWeather API Key]'
API_KEY_GEO = '[Your Geoapify API Key]'
API_KEY_MAIL = '[Your Web3forms API Key]'
4.Run the Application
python main.py
- Implement User Authentication for personalized experiences as message for daily update about weather.
- Implement additional error handling and validation for user inputs.
- Develop a mobile-responsive design.
- Optimize API usage to reduce load times
- Improve UI/UX design for a more engaging user interface.