WeatherTracker is a web application that provides real-time weather information and forecasts. The application uses the OpenWeatherMap API to fetch weather data based on user input.
- Display current weather conditions
- Display hourly weather forecast
- Display 3-day weather forecast with 3-hour intervals
- Real-time updates for the current time and weather
- Save and delete locations for quick access
- Detailed weather information, such as temperatures in Celsius and Fahrenheit, humidity, wind speed, and precipitation chance
- Python: For the back-end development, handling the server-side logic, data processing, and integration with the OpenWeatherMap API.
- HTML: For creating the structure of the web pages, such as the templates for displaying weather information, forms for user input, and other page components.
- CSS: For styling the HTML elements, making the user interface appealing and responsive.
- SQLite: Used as the database to store weather information and cities saved by the user.
- Flask: A lightweight web framework in Python, used to create and run the web application.
- Bootstrap: A front-end framework with a collection of CSS and JavaScript tools, used to style the application and ensure it was responsive.
- OpenWeatherMap API: A service that provides weather data, used to get real-time weather data for different locations.
Make sure you have the following installed on your system:
- Python 3.x
- pip (Python package installer)
- Clone the Repository
- Install Required Package: 'pip install Flask'
- Go to OpenWeatherMap and sign up for a free account. After signing up, navigate to the API Keys section in your account settings and generate a new API key.
- Add the API key in app.py (line 26)
- Run app.py to initialize the database
- Open a web browser and go to: 'http://127.0.0.1:5000/'