Weather_app

Weather App ⛅

A simple and beautiful weather application built with HTML, CSS, and JavaScript. Get real-time weather information for any city worldwide using the OpenWeather API.

Features ✨

Weather Conditions Supported 🌦️

How to Use 🚀

  1. Clone the Repository

    git clone https://github.com/shashankpandya/Weather_app
    cd Weather_app
    
  2. Open in Browser
    • Simply open Weather.html in your web browser
    • Or use a local server:

      # Using Python 3
      python -m http.server 8000
      
      # Using Python 2
      python -m SimpleHTTPServer 8000
      
      # Using Node.js (with http-server)
      npx http-server
      
  3. Enter a City Name
    • Type any city name in the search box
    • Press Enter or click the search button
    • View the current weather information

Live Preview 🌐

Try the app directly without downloading:

API Used 🔌

File Structure 📁

Weather_app/
├── Weather.html      # Main HTML structure
├── Weather.css       # Styling and layout
├── Weather.js        # Weather logic and API calls
└── README.md         # Documentation

Bug Fixes & Improvements ✅

Customization 🎨

Change API Key

Replace the API key in Weather.js:

const apiKey = "YOUR_API_KEY_HERE";

Get your free API key from OpenWeatherMap

Modify Colors

Edit the gradient in Weather.css:

background: linear-gradient(135deg, #00feba, #5b548a);

Add More Weather Conditions

Add more conditions in the checkWeather() function in Weather.js

Troubleshooting 🔧

Issue Solution
“Invalid city name” error Make sure you’re typing a valid city name (e.g., “London”, “New York”)
Icons not loading Check your internet connection; icons are loaded from CDN
API not responding Verify your API key is valid and has free tier access
Search not working Clear browser cache or try a different city name

Browser Support 🌍

Future Enhancements 🚀

License 📄

This project is open source and available under the MIT License.

Author 👨‍💻

Created by Shashank Pandya


Enjoy exploring the weather! 🌤️