π€οΈ Weather App A Java desktop application that provides real-time weather data and 5-day forecasts using the AccuWeather API, built with a GUI interface.
π Overview This Weather App was built in Java as part of the PM Accelerator program. It allows users to look up current weather conditions and a 5-day forecast for any location using city name, country, or zip code β all through a clean graphical interface.
β¨ Features
Multiple Search Methods β look up weather by City, Country, or Zip Code 5-Day Forecast β displays conditions, temperature, time, and overall weather summary for each day Repeat Searches β clear the current location and search again without restarting the app External Link β includes a button that opens the PM Accelerator LinkedIn page in your default browser AccuWeather Integration β live data pulled directly from the AccuWeather API
π οΈ Tech Stack LayerTechnologyLanguageJavaWeather APIAccuWeather APIJSON ParsingGson 2.11.0UIJava GUI (Swing)IDEIntelliJ IDEA
π Getting Started Prerequisites
Java JDK (latest version) Gson 2.11.0 .jar file An AccuWeather API key (included in source for demo purposes)
Setup in IntelliJ IDEA
Clone the repository:
bashgit clone https://github.com/juovani/Weather-App.git
Open the project in IntelliJ IDEA Add gson-2.11.0.jar as a module dependency:
Go to File β Project Structure β Modules β Dependencies Click + β JARs or directories Select gson-2.11.0.jar from the project root
Run Main.java
How to Use
Enter a City, Country, or Zip Code in the search field Press the search button to retrieve current weather and the 5-day forecast To search a new location, clear the input field, type a new location, and press the button again
π Project Structure Weather-App/ βββ Main.java # Main application β GUI, API calls, data display βββ gson-2.11.0.jar # Gson library for JSON parsing βββ README.md βββ LICENSE.md
π€ Author Juovani Kirlos
GitHub: @juovani Email: juovanikirlos@gmail.com LinkedIn: linkedin.com/in/juovanikirlos
π License This project is open source and available under the MIT License.