Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redatargaoui/weatherapp
Weather app in Java
https://github.com/redatargaoui/weatherapp
Last synced: 10 days ago
JSON representation
Weather app in Java
- Host: GitHub
- URL: https://github.com/redatargaoui/weatherapp
- Owner: RedaTargaoui
- Created: 2023-11-16T19:54:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-08T14:26:24.000Z (3 months ago)
- Last Synced: 2024-08-08T16:56:35.073Z (3 months ago)
- Language: Java
- Homepage:
- Size: 327 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather App in Java
## Overview
This is a simple weather app written in Java that provides weather data for a given location. It uses the `api.open-meteo.com` API to fetch weather information. The app includes several classes and makes use of the Swing library for creating the graphical user interface (GUI).## Classes
### 1. WeatherData
- Purpose: Get weather data for a given location name.
- Usage: This class is responsible for fetching weather data from the API based on the provided location name.### 2. Location
- Purpose: Get data about a given location name.
- Usage: This class provides information about a location and utilized by other parts of the application.### 3. HttpConnection
- Purpose: Response getter from a given URL.
- Usage: This class handles the HTTP connection and retrieves the response from a specified URL, such as the API endpoint.### 4. GUI
- Purpose: Create the app GUI.
- Usage: This class is responsible for creating and displaying the graphical user interface of the weather app. It interacts with other classes to fetch and display weather data.## Libraries
- **Swing**: Used for creating the graphical user interface.
- **json_simple**: Used for parsing JSON responses from the weather API.## API
- **api.open-meteo.com**: This is the API used to fetch weather data.