This project is a small web application that allows users to enter a location and retrieve the current weather information. The retrieved data is stored in a MySQL database, and users can also view the history of weather searches.
- Search Weather: Enter a location and get the current weather details using the Open Weather Map API.
- Weather Icons: Display weather icons based on the retrieved weather conditions.
- Database Storage: Store weather records in a MySQL database, including location, time, temperature, and weather description.
- History: View the history of previous weather searches, including temperature and weather type.
- Frontend: HTML, CSS, JavaScript
- Backend: PHP
- Database: MySQL
- External API: Open Weather Map API
index.php
: Main page with the weather search functionality.insert.php
: PHP script to insert weather data into the MySQL database.history.php
: PHP script to retrieve and display weather search history.styles.css
: CSS styles for the application.images/
: Folder containing weather icons and background images.
-
Clone the repository to your local machine.
git clone https://github.com/AtharvShinde2004/Weather-App.git
-
Set up your local server environment (e.g., MAMP, XAMPP).
-
Import the provided SQL dump file (
weather_app_database.sql
) into your MySQL database. -
Update the Open Weather Map API key in the
index.php
file. -
Access the application through your local server (e.g., http://localhost/your-weather-app/index.php).
This project is licensed under the MIT License.