Skip to content

A simple weather application built using React and Material-UI. It fetches real-time weather data from the OpenWeatherMap API and dynamically displays information such as temperature, humidity, and weather conditions with intuitive visuals.

Notifications You must be signed in to change notification settings

TanishqChavan10/Weather-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Weather App 🌦️

A simple weather application that fetches real-time weather data using the OpenWeatherMap API and dynamically displays weather information with user-friendly visuals.

Features

  • 🌍 Search for weather details by city name.
  • 🌑️ Displays current temperature, humidity, minimum & maximum temperature, and weather descriptions.
  • 🎨 Dynamic visuals with icons and background images based on weather conditions (hot, cold, rainy, etc.).
  • ❌ Error handling for invalid city names.

Tech Stack

  • Frontend: React, Material-UI (MUI).
  • API: OpenWeatherMap.

Screenshots image

Installation

  1. Clone the repository: git clone https://github.com/yourusername/weather-app.git

  2. Navigate to the project directory: cd weather-app

  3. Install dependencies: npm install

  4. Add your OpenWeatherMap API key to the SearchBox.jsx file: const API_KEY = "your_api_key_here";

  5. Start the development server: npm start

Usage

  • Enter the city name in the search box and click Search.
  • View real-time weather data and corresponding visuals.

Project Structure src β”œβ”€β”€ components
β”‚ β”œβ”€β”€ InfoBox.jsx # Displays weather information β”‚ β”œβ”€β”€ SearchBox.jsx # Allows user to search for a city's weather β”œβ”€β”€ WeatherApp.jsx # Main application component └── index.js # Entry point of the app

Future Enhancements

  • 🌐 Add support for multiple languages.
  • πŸ“ Integrate geolocation to fetch weather automatically for the user's location.
  • πŸ“Š Include graphs for temperature trends over the week.

Contributing Contributions are welcome!

  1. Fork the project.
  2. Create your feature branch: git checkout -b feature/new-feature.
  3. Commit your changes: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature/new-feature.
  5. Open a pull request.

License This project is licensed under the MIT License.

About

A simple weather application built using React and Material-UI. It fetches real-time weather data from the OpenWeatherMap API and dynamically displays information such as temperature, humidity, and weather conditions with intuitive visuals.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published