Skip to content

kristireispass/WeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Data API

Simple weather data application that imports data every 15 min for the cities in the list.

The data imported include: temperature, humidity, wind speed and time in Unix format.

Two cities are already preloaded and start importing data when the application is started.

Uses H2 in-memory database with Spring Boot.

Configuration

Java JDK 17

API key

To create your API key, create a user at https://openweathermap.org/ , and you can find it under https://home.openweathermap.org/api_keys. Then replace "INSERT_API_KEY_HERE" with your own API key in the application.properties file in src/main/resources.

Swagger UI

Swagger is used to test REST API functionality, and it is located at http://localhost:8080/swagger-ui/.

Sample for adding a new city

{ "id": 588409, "name": "Tallinn", "country": "EE" }

Full list of cities here (city.list.json.gz): http://bulk.openweathermap.org/sample/<>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages