All Projects → kevalpatel2106 → Open-Weather-API-Wrapper

kevalpatel2106 / Open-Weather-API-Wrapper

Licence: Apache-2.0 license
An Android wrapper for the APIs of https://openweathermap.org

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Open-Weather-API-Wrapper

TheWeatherDashboardApp
A small and stylish weather dashboard.
Stars: ✭ 29 (+26.09%)
Mutual labels:  openweathermap-api, weather-api
OWM-JAPIs
Java APIs for OpenWeatherMap.org
Stars: ✭ 14 (-39.13%)
Mutual labels:  openweathermap-api, weather-api
rainviewer-api-example
How to use RainViewer API: simple HTML + JS code which render an animated weather radar overlay on the map
Stars: ✭ 56 (+143.48%)
Mutual labels:  weather-api
darksky-forecast-api
darksky-forecast-api is a Java library to access the darksky.net weather API
Stars: ✭ 34 (+47.83%)
Mutual labels:  weather-api
api
Community discussion and documentation for the NWS API
Stars: ✭ 168 (+630.43%)
Mutual labels:  weather-api
openweather-laravel-api
Laravel OpenWeather API is a Laravel package to connect Open Weather Map API and get wether data in your own format laravel app.
Stars: ✭ 54 (+134.78%)
Mutual labels:  openweathermap-api
OpenWeatherMap-Android-Library
A wrapper for the openweathermap REST API
Stars: ✭ 100 (+334.78%)
Mutual labels:  openweathermap-api
weather-bar-app
Weather Bar lives in your Menu Bar giving you access to beautiful real-time weather conditions and a generous 15-day forecast.
Stars: ✭ 38 (+65.22%)
Mutual labels:  openweathermap-api
text-bot-openwhisk
DEPRECATED: this repo is no longer actively maintained
Stars: ✭ 12 (-47.83%)
Mutual labels:  weather-api
cuba-weather-python
Application programming interface of the Cuba Weather project implemented in Python
Stars: ✭ 17 (-26.09%)
Mutual labels:  weather-api
codetabs
Free Online Services. Github/GitLab star history. Count Lines of Code. CORS proxy server. IP GeoLocation. Convert Video to Gif. HTTP Headers. Api weather temp. Alexa ranking.
Stars: ✭ 114 (+395.65%)
Mutual labels:  weather-api
SkyMate
⚡ Weather app that fetches real time weather data of any location
Stars: ✭ 18 (-21.74%)
Mutual labels:  weather-api
meteofrance-api
Python client for Météo-France API. | Client python pour l'API Météo-France
Stars: ✭ 50 (+117.39%)
Mutual labels:  weather-api
dwdweather2
Python client to access weather data from Deutscher Wetterdienst (DWD), the federal meteorological service in Germany.
Stars: ✭ 68 (+195.65%)
Mutual labels:  weather-api
wetterdienst
Open weather data for humans
Stars: ✭ 190 (+726.09%)
Mutual labels:  weather-api
pirate-weather-ha
Replacement for the default Dark Sky Home Assistant integration using Pirate Weather
Stars: ✭ 193 (+739.13%)
Mutual labels:  weather-api
Weather
Weather Android App using apixu API https://www.apixu.com
Stars: ✭ 48 (+108.7%)
Mutual labels:  weather-api
weather-mobile
A simple GTK4 weather app to play with rust and PinePhone development. I just needed a weather app that scaled properly...
Stars: ✭ 15 (-34.78%)
Mutual labels:  openweathermap-api
VWapi
⛈ ☀️ Visual Weather api. Returns beautiful pictures with the current weather.
Stars: ✭ 33 (+43.48%)
Mutual labels:  weather-api
SciFi Conky HUD
SciFi theme for Conky
Stars: ✭ 33 (+43.48%)
Mutual labels:  openweathermap-api

Open-Weather-API-Wrapper

Download Build Status Android Arsenal API

sun.png

Open Weather API Wrapper is an Android wrapper for the APIs of https://openweathermap.org. This library handles all the network operations and parameter validations on behalf of the developer.

Dependency:

  • Add below lines to app/build.gradle file of your project.
dependencies {
    compile 'com.kevalpatel2106:open-weather-wrapper:1.0'
}

How to use this library?:

  • Initialization:

Initialize the library in your launch activity by providing the open weather api key and the unit system you want to use throughout the application. If you don't have the open weather api key, you can generate it from here.

   OpenWeatherApi.initialize("YOUR API KEY", Unit.STANDARD);
  • Accessing the API:

Open weather api provides you functions to access below information:

  • Get current weather for provided city, geo point or postal code.
  • Get three hourly forecast for city or, geo point.
  • Get the daily forecast for provided city or geo point.

You can get the required information by passing the required parameters. The information will be received in specific listeners.

Here is the example of getting the three hourly forecast of the weather by city name.

OpenWeatherApi.getThreeHoursForecast("Landon,uk", new ForecastListener() {
    @Override
    public void onResponse(WeatherForecast weatherForecasts) {
        //Forecast received.
        //Do someting
    }

    @Override
    public void onError(String message) {
        //Something went wrong.
        //Display the error message to the user.
    }
});

Open Weather API Wrapper uses RxJava and Retrofit to handle the network operations.

Demo:

  • You can download the sample application from here.

Contribute:

  • Still there are many open weather apis to implement. Any pull request are most welcome. Simple 3 step to contribute into this repo:
  1. Fork the project.
  2. Make required changes and commit.
  3. Generate pull request. Mention all the required description regarding changes you made.

Questions:

Hit me on twitter Twitter

License

Copyright 2017 Keval Patel

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].