A beautiful, responsive weather dashboard that fetches real-time weather data from the OpenWeatherMap API.
- ✅ Real-time weather updates
- ✅ Current weather conditions (temperature, humidity, wind speed, feels like)
- ✅ 5-day weather forecast
- ✅ Search functionality for any city
- ✅ Responsive design (mobile & desktop)
- ✅ Beautiful gradient UI with smooth animations
Visit the live dashboard: Weather Dashboard
- Visit OpenWeatherMap
- Sign up for a free account
- Go to "API keys" section
- Copy your API key
Open script.js and replace YOUR_API_KEY_HERE with your actual API key:
const API_KEY = 'your-api-key-here';Simply open index.html in your browser, or use a local server:
# Using Python 3
python -m http.server 8000
# Using Node.js (with http-server)
npx http-serverThen navigate to http://localhost:8000
weather-dashboard/
├── index.html # HTML structure
├── styles.css # CSS styling
├── script.js # JavaScript functionality
└── README.md # Documentation
- HTML5 - Structure
- CSS3 - Styling with gradients and animations
- JavaScript (Vanilla) - API integration and DOM manipulation
- OpenWeatherMap API - Weather data
- Search for any city in the world
- Press Enter or click the Search button
- Real-time validation with error handling
- Temperature
- Weather description
- Humidity percentage
- Wind speed
- "Feels like" temperature
- Daily forecast cards
- Temperature predictions
- Weather conditions
- Hover effects for better UX
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
The free OpenWeatherMap API has rate limits:
- 1,000 calls/day
- 60 calls/minute
- Geolocation support
- Temperature unit toggle (°C/°F)
- Weather alerts
- Historical weather data
- Multiple city comparison
- Dark mode
- PWA support
MIT License - Feel free to use this project as you wish!
- Weather data: OpenWeatherMap
- Icons: Built-in emoji
- Inspiration: Modern weather dashboards
Made with ❤️ by HyphensPeciwse33