A simple and elegant weather forecast application that uses the OpenWeatherMap API to display real-time weather information for any city worldwide.
- 🔍 Search weather by city name
- 🌡️ Display current temperature in Celsius
- 💨 Show wind speed, humidity, and pressure
- 🎨 Beautiful, responsive design with gradient background
- ⚡ Real-time weather data from OpenWeatherMap API
- 📱 Mobile-friendly interface
- Visit OpenWeatherMap
- Sign up for a free account
- Navigate to your API keys section
- Copy your API key
- Open
app.js - Replace
YOUR_API_KEY_HEREwith your actual API key:const API_KEY = 'your_actual_api_key_here';
If you have Python installed:
# Python 3
python -m http.server 8000Then open your browser and navigate to http://localhost:8000
- Install the "Live Server" extension in VS Code
- Right-click on
index.html - Select "Open with Live Server"
Simply open index.html in your web browser (some features may be limited due to CORS restrictions).
- Enter a city name in the search box
- Click the "Search" button or press Enter
- View the current weather information including:
- Temperature and "feels like" temperature
- Weather description
- Humidity percentage
- Wind speed
- Atmospheric pressure
.
├── index.html # Main HTML structure
├── styles.css # Styling and animations
├── app.js # JavaScript logic and API calls
└── README.md # This file
- HTML5
- CSS3 (with animations and gradients)
- Vanilla JavaScript (ES6+)
- OpenWeatherMap API
This app uses the OpenWeatherMap Current Weather Data API
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
MIT License - feel free to use this project for learning and development purposes.