Inspiration
As someone who's comfortable programming in Java, I wanted to use this project to really expand my knowledge and capabilities. I've never really used Swing or APIs in Java, so I saw this as a great opportunity to learn how they work!
What it does
This application works by using weather and location APIs to get JSON data that is then stored and evaluated. Depending on the user input, the appearance of the app changes in correspondence to weather being cloudy vs clear.
How we built it
I first decided on the design/layout I wanted for the app and implemented that. Then, I worked on learning and implementing the actual connection to the API and URLs. Finally, I implemented a way for the app to change its appearance depending on the given weather.
Challenges we ran into
The code kept returning a null value for the weather data object which caused everything to not work, however, it eventually solved itself somehow. It was also a lot more tedious to work with Swing than I was expecting, so that took quite a while.
Accomplishments that we're proud of
I'm just happy that this project works properly! I'm also glad I got a foundation in how APIs work in Java and how I can incorporate them in my future projects.
What we learned
What JSON data is and how to manipulate it, how to work with Swing, how to create HTML connections for APIs.
What's next for Real(ish) Time Weather
Maybe using different software for the front-end portion of the application. It would be a good opportunity to learn how to use things like React.
Built With
- api
- java
- open-meteo
- vscode
Log in or sign up for Devpost to join the conversation.