π¦οΈ My Weather App
A simple, responsive Weather Forecast Web App built using HTML, CSS, and JavaScript. It displays current weather conditions and a 3-day forecast for any city using the OpenWeatherMap API and shows the location on an interactive Leaflet map.
π Features
π Search weather by city name or use current location (GPS)
π‘οΈ View temperature in Celsius or Fahrenheit
π 3-day weather forecast (temperature, condition, icon)
π§ Shows humidity, wind speed, pressure, and UV index
πΊοΈ Integrated interactive map (powered by Leaflet & OpenStreetMap)
π± Fully responsive design (works on mobile, tablet, and desktop)
π οΈ Technologies Used
HTML5 β Structure
CSS3 β Styling & Responsiveness
JavaScript (ES6) β Functionality
OpenWeatherMap API β Weather data
Leaflet.js β Map integration
π¦ Setup Instructions
Clone or download the repository:
git clone https://github.com/your-username/my-weather-app.git
Open the folder in your code editor.
Get a free API key from OpenWeatherMap .
In the <script> section of index.html, replace the API key with your own:
Run the app
You can simply open the index.html file in your browser, or
Use a local server (like VS Code Live Server extension).
π§ Usage
Enter a city name and click Search
Or click Use Location to automatically detect your current weather
Toggle between Β°C / Β°F from the dropdown menu
Scroll down to view a 3-day forecast and the map location
πΌοΈ Screenshot
(Add your own image here after hosting the app β for example:)
π‘ API Reference
OpenWeatherMap Current Weather API https://openweathermap.org/current
OpenWeatherMap 5-Day Forecast API https://openweathermap.org/forecast5
π Map Integration
The app uses Leaflet.js with OpenStreetMap tiles to show the selected location on an interactive map.
π» Live Demo
π View on GitHub Pages
π§βπ» Author
Mesandu
GitHub:https://github.com/Mesandu2007/Weather-App/
Email: your.email@example.com
