Code Monkey home page Code Monkey logo

realtime-weather-forecast-system's Introduction

Realtime Weather Forecast System

This repository contains a simple Java Swing application that fetches and displays weather information for a specified city. The application uses the OpenWeatherMap API to retrieve weather data and displays it in a user-friendly GUI.

Features

  • City Search: Enter the name of a city to fetch its weather information.
  • Weather Details: Displays detailed weather information including temperature, humidity, and wind speed.
  • Weather Icon: Shows an icon representing the current weather condition.
  • Theme Toggle: Switch between light and dark modes for a comfortable viewing experience.

Getting Started

Prerequisites
  • Java Development Kit (JDK) installed on your system.
  • An API key from OpenWeatherMap. You can obtain one by signing up on their website.
Installation
  1. Clone the repository to your local machine.
  2. Open the project in your preferred Java IDE.
  3. Replace the placeholder API key in the fetchWeather method with your actual OpenWeatherMap API key.
String apiKey = "YOUR_OPENWEATHERMAP_API_KEY";
  1. Run the application.

Usage

  • Enter the name of a city in the input field.
  • Press Enter or click the "Get Weather" button to fetch the weather information.
  • The application will display the weather details and an icon representing the current weather condition.
  • Use the "Toggle Theme" button to switch between light and dark modes.

Contributing

Contributions are welcome. Please feel free to submit a pull request or open an issue if you find any bugs or have suggestions for improvements.

Acknowledgments

  • OpenWeatherMap for providing the weather data API.
  • Java Swing for the GUI framework.

Contact

For any questions or feedback, please open an issue on this repository.

realtime-weather-forecast-system's People

Contributors

atharvaj1234 avatar

Stargazers

Komal Anil Parab avatar Mohit Mhatre avatar Yash Mhatre avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.