A responsive web application for comparing 7-day weather forecasts across up to three U.S. locations.
- 7-Day Comparative Forecast: View and compare weather for up to 3 cities side-by-side
- Auto-Detection: Automatically detects your location via IP geolocation
- RealFeel Temperature: Displays calculated "feels like" temperatures (high/low)
- Severe Weather Alerts: Shows active NWS weather alerts with one-click access
- Theme Support: Light, Dark, and System Default modes
- Fully Responsive: Optimized for mobile, tablet, and desktop
- Frontend: HTML5, CSS3, Vanilla JavaScript
- APIs:
- National Weather Service (NWS) - Weather data
- IP-API - Geolocation
- Open-Meteo - Geocoding
- Hosting: GitHub Pages
- Visit the live app: [Your GitHub Pages URL]
- The app will auto-detect your location
- Add additional cities by typing city names or ZIP codes
- View the 7-day comparative forecast table
- Click alert icons (
⚠️ ) to view active weather warnings
# Clone repository
git clone https://github.com/YOUR-USERNAME/weather-compare-app.git
# Navigate to directory
cd weather-compare-app
# Open in browser (or use local server)
open index.html- Geographic Coverage: U.S. and territories only (NWS API limitation)
- Forecast Length: 7 days (NWS provides up to 7 days reliably)
- Rate Limits: Moderate usage to respect API fair use policies
- Chrome/Edge: Latest 2 versions
- Firefox: Latest 2 versions
- Safari: Latest 2 versions
- Mobile: iOS Safari 12+, Android Chrome 90+
MIT License - Free to use and modify
Weather data provided by the National Weather Service
---
### .gitignore
.DS_Store Thumbs.db
.vscode/ .idea/
*.log
.env .env.local