(https://github.com/riteshpushkar/weather-app/assets/79689579/2c6814f1-263a-4568-83b3-3190af13b1ac)
This is a simple web application that fetches weather information for a given city using the OpenWeatherMap API. Users can input a city name, and the app will display details such as temperature, pressure, humidity, weather condition, sunrise, and sunset times.
- Fetches real-time weather data from OpenWeatherMap API.
- Dynamically displays weather information based on user input.
- Responsive design for optimal viewing on various devices.
- HTML
- CSS
- JavaScript
- Python (Django Framework)
- OpenWeatherMap API
- Clone the repository:
git clone https://github.com/your-username/weather-app.git
- Install the required dependencies (assuming Python and pip are already installed):
cd weather-app pip install -r requirements.txt
-
Obtain an API key from OpenWeatherMap and replace
'YOUR_API_KEY'
inhome()
function insideviews.py
with your actual API key. -
Run the Django server:
-
Access the application in your web browser at
http://localhost:8000
.
- Enter the name of the city for which you want to check the weather in the input field provided.
- Click on the "Get Weather" button.
- The application will display the weather information for the specified city.
- Weather data provided by OpenWeatherMap.
- Icons from Font Awesome.