Skip to content

ashmita129/Forecast360

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forecast 360

A simple and visually appealing React application that provides real-time weather updates for cities worldwide using the OpenWeatherAPI. Users can search for cities to check weather details, including temperature, humidity, and weather descriptions, along with a relevant image for the weather conditions.

Features

  • Search Functionality: Easily search for weather details of any city.
  • Real-Time Data: Displays real-time temperature, humidity, and weather description.
  • Responsive Design: User-friendly interface suitable for all devices.
  • Weather Visualization: Includes weather images matching current conditions.

Technologies Used

  • ReactJS: Front-end framework.
  • OpenWeatherAPI: Fetches weather data.
  • CSS: Styling for the application.

Setup Instructions

Prerequisites

  1. Node.js: Ensure Node.js and npm (Node Package Manager) are installed.

  2. Git: Make sure Git is installed for cloning the repository.

Installation Steps

Follow these steps to clone and run the application:

  1. Clone the Repository:

    git clone https://github.com/ashmita129/Forecast360
  2. Navigate to the Project Directory

    cd weather-dashboard
  3. Install Dependencies

    npm install
  4. Run the Application

    npm run dev

API Key Configuration

To access the OpenWeatherAPI, follow these steps:

Get an API Key:

  1. Visit OpenWeatherAPI and sign up for a free account.
  2. Obtain your API key from the dashboard.

Add the API Key:

  1. Create a .env file in the project root directory.
  2. Add the following line to the .env file:
    API_KEY=your_openweather_api_key
  3. Replace your_openweather_api_key with your actual API key.

Restart the Server

npm run dev

Usage

  1. Enter a city name in the search bar.
  2. Click "Search" to fetch the weather details.
  3. View the city's temperature, humidity, weather description, and an image representing the weather conditions.

Sample Output

Example Weather Data for Switzerland

Temperature = -1.74°C  
Humidity = 85  
Min Temp = -2.27°C  
Max Temp = -1.25°C  
Weather = Broken clouds, feels like -3.67°C  

Sample Pics

Delhi

Mumbai

Gangtok

Hyderabad

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors