Skip to content

Om-Handa/Real-Time-Weather-Using-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌦️ Weatherly β€” Modern Weather Forecast Web App

✨ A sleek and responsive weather forecasting application with modern UI, animated charts, and real-time weather insights.


πŸ“Έ Preview

Weather App Preview Weather App Preview

πŸš€ Features

🌍 Real-Time Weather Data

  • Search weather for any city
  • Live temperature updates
  • Current weather conditions
  • Dynamic weather information

πŸ“Š Interactive Charts

  • 5-day weather forecast
  • Hourly weather graph
  • Smooth Chart.js visualizations
  • Responsive graph design
  • Mobile-friendly scrolling charts

🎨 Modern UI/UX

  • Glassmorphism design
  • Responsive layout
  • Dynamic backgrounds
  • Smooth weather cards
  • Mobile optimized interface

β˜€οΈ Detailed Weather Information

  • Humidity
  • Wind Speed
  • Pressure
  • UV Index
  • Sunrise & Sunset
  • Rain Probability
  • Max/Min Temperatures

πŸ› οΈ Tech Stack

Technology Usage
HTML5 Structure
CSS3 Styling & Responsive Design
JavaScript Functionality
WeatherAPI Weather Data
Chart.js Graphs & Forecast Charts
RapidAPI API Gateway

πŸ“‚ Project Structure

Weather-App/
β”‚
β”œβ”€β”€ index.html
β”œβ”€β”€ style.css
β”œβ”€β”€ script.js
β”œβ”€β”€ graph.js
β”œβ”€β”€ hourly-graph.js
β”œβ”€β”€ weather_api.js
β”œβ”€β”€ config.js
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ rain.jpg
β”‚   └── clear.avif
β”‚   β”œβ”€β”€ default.jpg
β”‚   β”œβ”€β”€ clear-night.jpg
β”‚   β”œβ”€β”€ cloudy_night.jpg
β”‚
└── README.md

⚑ Installation & Setup

1️⃣ Clone Repository

git clone https://github.com/your-username/weather-app.git

2️⃣ Open Project Folder

cd weather-app

3️⃣ Add API Key

Create a config.js file:

export const API_KEY = "YOUR_API_KEY";

4️⃣ Run Project

Use VS Code Live Server or open index.html.


πŸ”‘ API Used

WeatherAPI

This project uses:

  • Current Weather API
  • Forecast API
  • Hourly Forecast API

Powered through RapidAPI.


πŸ“± Responsive Design

The app is fully responsive for:

βœ… Desktop βœ… Tablets βœ… Mobile Devices


πŸ“ˆ Graph Features

3-Day Forecast Graph

  • Max temperature line
  • Min temperature line
  • Dynamic labels
  • Smooth curves

Hourly Weather Graph

  • Rolling 24-hour forecast
  • Real-time hourly temperatures
  • Mobile scrolling graph
  • Dynamic AM/PM labels

🎯 Future Improvements

  • 🌍 Geolocation support
  • πŸŒ™ Dark/Light theme toggle
  • 🌧️ Weather animations
  • πŸ“… Weekly forecasts
  • πŸ”” Weather alerts
  • πŸ—ΊοΈ Interactive weather maps
  • 🌑️ Unit conversion (Β°C / Β°F)

πŸ’‘ Learning Outcomes

This project helped in learning:

  • API integration
  • ES6 Modules
  • Async/Await
  • DOM Manipulation
  • Responsive Design
  • Chart.js Integration
  • Mobile-first UI
  • Git & GitHub workflow

🀝 Contributing

Contributions are welcome.

  1. Fork the repository
  2. Create a new branch
  3. Commit changes
  4. Push changes
  5. Open a Pull Request

πŸ“œ License

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


πŸ‘¨β€πŸ’» Author

Om Handa


⭐ If you like this project, give it a star ⭐

Made with ❀️ using HTML, CSS & JavaScript

About

This is a simple and interactive weather-telling website that provides real-time weather updates based on the user's location or a searched city. It is built using HTML, CSS, and JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors