Weather Window is an interactive web application that transforms weather data into a dynamic visual experience. Instead of traditional weather icons, it renders a real-time animated window view that changes based on current weather conditions, time of day, and location.
-
Real-time Weather Visualization:
- Sunny, cloudy, rainy, and clear night scenes
- Dawn/dusk transitions with appropriate lighting
- Animated rain, clouds, and stars
-
Location-Based:
- Automatic geolocation detection
- Search for any city worldwide
- Timezone-aware time displays
-
Technical Highlights:
- Uses Open-Meteo Weather API
- Pure CSS animations
- Responsive design
- No external libraries (vanilla JavaScript)
No installation required - runs directly in modern browsers:
- Clone the repository
- Open index.html in any modern browser Or access the live version at: [Live Demo URL]
-
On Load:
- The app will request location permission to show local weather
- If denied, defaults to New York weather
-
Search:
- Type any city name in the search bar
- Select from dropdown results
-
Information Display:
- Current temperature (Fahrenheit with Celsius small)
- "Feels like" temperature
- Wind speed and humidity
- Local time
Open-Meteo Weather API:
- Free weather API with generous limits
- Provides:
- Current temperature
- Weather codes
- Humidity
- Wind speed
- Timezone data
To modify the visual effects:
-
Change Colors:
- Edit the gradient backgrounds in setScene() function
- Example: bg = 'linear-gradient(to top, #87CEEB, #ffffff)'
-
Adjust Animations:
- Modify CSS @keyframes in the style section
- Example: Change @keyframes rainFall for different rain speeds
-
Add New Weather Types:
- Extend the setScene() switch statement
- Add new condition checks and corresponding visual elements
Issue: Location not loading Fix:
- Check browser permissions
- Verify internet connection
- Console log any API errors
Issue: Time displays incorrectly Fix:
- Verify the timezone returned from API
- Check updateTime() function calculations
- Add snowfall for winter conditions
- Implement weather forecasts
- Add day/night cycle transitions
- Mobile app version
- Weather data by Open-Meteo
- Inspired by lo-fi aesthetic designs
- Developed by Deceli Soto
MIT License - Free for personal and commercial use