GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bispo-daniel/Java_WeatherAPI: Java Maven project to query JSON from WeatherAPI

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
.settings
.settings
 
 
.vscode
.vscode
 
 
bin
bin
 
 
src
src
 
 
target/classes
target/classes
 
 
.classpath
.classpath
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.project
.project
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Java_WeatherAPI

Java application to query a city weather.

The API used is from Weather API. //Get your key here:

https://www.weatherapi.com/my/

About

This project was developed as a need of mine to learn to developed and handle HTTP requisitions with Java.
This project used Maven to use some dependencies.
Swing was used to build a user-friendly GUI.

3 dependencies has been used:
    com.squareup.okhttp3 -- To get the API's response
    org.json -- To transform the API's Response into a JSON
    com.jayway.jsonpath -- To get values from the JSON

The greatest challenge here was the JSON handling, then jsonpath was implemented and things got easier.

A separate class was created (MySecretKey.java) to hide my API key that is used in Main.java

Screenshots

Main menu

all-text

Query menu

all-text

About

Java Maven project to query JSON from WeatherAPI

Topics

apijavajsonjsonobjectjsonpathmavenokhttpoopswing

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.