Java Open Weather API Wrapper
Open Weather Map API wrapper for Java.
This project allows you to seamlessly implement the Open Weather Map API into your projects.
Note: this repository is not endorsed nor affiliated with OpenWeather and is independently managed by MineAPI
How to use:
Below you can see a basic application that prints out the temperature in New York.
OpenWeatherMapAPI api = new OpenWeatherMapAPI("YOUR API KEY HERE"); //Initialize api wrapper!
CurrentWeather weather = api.getCurrentWeather(10001, Units.imperial); //Get current weather!
System.out.println(weather.getMain().getTemp()); //Print our results!
License:
Copyright (C) 2022 MineAPI
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.