Giter VIP home page Giter VIP logo

openweatherplus-android's Introduction

OpenWeatherPlus 天气普拉斯

中文介绍请往下翻,使用文档请参考这里

OpenWeatherPlus for Android is an open source weather APP that allows developers to quickly publish and integrate weather services.

iOS see here

3rd Data

Weather Data

OpenWeatherPlus was developed by heweather, so obviously, it uses heweather weather API data. In this APP, it integrates with heweather free weather data SDK.

You need a KEY to get free or commercial weather data, please visit https://www.heweather.com

Location

OpenWeatherPlus uses the location function provided by Amap to obtain the current location and display the weather according to the current location.

You need a KEY to use the Amap location service, API or SDK, please visit https://lbs.amap.com. This service is free for non-commercial usage.

You can also use your preferred location methods.

Features

  • Global daily and hourly weather forecast, including: Weather Conditions, Temperature, Pressure, Relative Humidity, Precipitation, Wind, Visibility, sun and moon
  • AQI for Chinese cities
  • Hourly forecasts with dynamic curves
  • City search, support for fuzzy search and search suggestions
  • Multilingual, Chinese and English
  • Unit switch
  • Different font sizes

Documents

See WIKI

Screenshots

homepage 2nd

city search setting

Compatibility

Requires Android 4.4 or later.

License

Apache 2.0


天气普拉斯 OpenWeatherPlus

天气普拉斯Android版 是一款开源天气APP,方便开发者快速发布和集成天气服务。

iOS版在这里

第三方数据

天气数据

天气普拉斯和风天气 开发,所以很显然,数据也使用的是 和风天气,APP已经集成了和风天气SDK。

当你使用这个APP时需要自行注册一个 免费KEY 访问 https://www.heweather.com

定位服务

天气普拉斯 使用 高德 定位服务。

你同样需要一个高德地图的 KEY 去使用定位API或SDK, 请访问 https://lbs.amap.com

你也可以用原生定位或其他第三方定位SDK。

主要功能

  • 全球每日和逐小时天气预报,包括:天气状况、温度、大气压、相对湿度、降水量、风力风速风向、能见度、日出日落和月升月落等
  • **城市还有AQI空气质量数据
  • 逐小时天气动态曲线
  • 城市搜索,支持模糊搜索和搜索建议
  • 多语言,目前支持中英文
  • 单位转换
  • 可设置不同字体大小

使用文档

WIKI

截图

往上翻

兼容适配

Android 4.4+

许可证

Apache 2.0

openweatherplus-android's People

Contributors

qwrda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

openweatherplus-android's Issues

代码运行闪退

HeWeather.getGeoCityLookup中,search.getLocationBean()数据为空。hack后运行,城市搜索不到,添加不了城市
签名文件不存在,用我自己的签名文件的话,地图需要另外设置key,可否提供下签名文件,谢谢

无访问权限

下载回来的工程,在和风网站上面注册了key,包名是工程的com.heweather.owp。在工程中把id、key都替换了,提示无访问权限
09-30 16:19:33.588 6277-6277/com.heweather.owp I/sky: getAlarm onError: java.lang.Throwable: Code [ permission denied ], msg [ 无访问权限 ] , packageName [com.heweather.owp]
09-30 16:19:33.621 6277-6277/com.heweather.owp I/sky: getWeatherHourly onError: getWeatherHourly :java.lang.Throwable: Code [ permission denied ], msg [ 无访问权限 ] ,

程序出现异常

我根据你们提供的文档进行修改后,程序运行时爆出了异常,导致程序闪退
12-19 10:02:30.978 3095-3141/? E/com.heweather.owp.crash.CrashHandler: 系统异常退出

java.lang.IndexOutOfBoundsException: Invalid index 3, size is 3
    at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
    at java.util.ArrayList.get(ArrayList.java:308)
    at com.heweather.owp.view.fragment.WeatherFragment.getWeatherForecast(WeatherFragment.java:536)
    at com.heweather.owp.presenters.impl.WeatherImpl$2.onSuccess(WeatherImpl.java:80)
    at interfaces.heweather.com.interfacesmodule.b.m$1$1.a(WeatherDataImpl.java:81)
    at interfaces.heweather.com.interfacesmodule.c.e$1$3.run(RequestUtil.java:154)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5254)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

why

What went wrong:
A problem occurred configuring project ':app'.

java.lang.NullPointerException (no error message)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.