Skip to content

This is a tiny weather widget to use in your website or app using javascript (and java)

License

Notifications You must be signed in to change notification settings

comwiz756/weather-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Weather Widget

This is a tiny weather widget to use in your website or app using javascript (and java)

For this example we will be using IPInfoDB IP service to get client ip and convert it into an actual address. Then we will call OpenWeatherMap API to get the weather data and show it in our web app.

For some browsers, due to cross-origin (http requests from https) errors, requests will not able to be submitted. The easy solution for this is to channel all the requests through the server. To avoid cross-origin issues, I have a servlet (GetWeatherServlet) that does the api request and sends the response to the client.

alt text

About

This is a tiny weather widget to use in your website or app using javascript (and java)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published