This Weather Forecast Console Program is a Java application that retrieves weather data from the OpenWeather API to display current weather conditions and a 3-day forecast for a specified city by entering the longitude and latitude coordinates.
This project was selected to demonstrate the basics of Java and to apply fundamental programming skills and concepts, aiding in the process of learning a new programming language.
IDE:
- IntelliJ IDEA 2024.1 (Community Edition)
- Build #IC-241.14494.240, built on March 28, 2024
- Runtime version: 17.0.10+8-b1207.12 aarch64
- VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
- macOS 14.3.1
Programming Language:
- Java 22.0.1 2024-04-16
- Java(TM) SE Runtime Environment (build 22.0.1+8-16)
- Java HotSpot(TM) 64-Bit Server VM (build 22.0.1+8-16, mixed mode, sharing)
External Library:
- json-simple-1.1.1.jar
- JSON.simple is a simple Java toolkit for JSON to encode or decode JSON text
- Must be downloaded and added to the project structure as a module
- JDK Installation Guide
- IntelliJ IDEA Community Edition Downloader Mac
- W3Schools Java Tutorial
- BeginnersBook ArrayList Java Tutorial
- OpenWeather Current Weather Data API Documentation
- JSON Simple JAR file
- TapTap - How To Perform API calls in Java Tutorial
- Add a Read and Write to file feature
- Add Geocoding and Reverse Geocoding features to auto-return the city or location name (if lon-lat coordinates are provided) and vise versa
- Refactor for a better OOP structure, optimize performance, reduce dependencies, and add more validation/exceptions handling (e.g. create more interfaces, classes, etc.)