commit | cd5f9dee34374ec598c3045127bc8b7a0e9b1ae8 | [log] [tgz] |
---|---|---|
author | maxwen <max.weninger@gmail.com> | Thu Apr 20 23:35:05 2017 +0200 |
committer | maxwen <max.weninger@gmail.com> | Fri Apr 21 00:07:58 2017 +0200 |
tree | 5699420c3b600ae6c7ef728403e65ee301eee253 | |
parent | 4717d372818e7ce5b625c8eee6eec72fc2798ab6 [diff] |
OmniJaws: remove separation between force and not force update makes no sense. An update is either triggered from alarm or requested == forced. nothing else is needed all in one this fixes the bug that alarm updates where not handled because they fell into the not due case that should not have been check for alarm updates anyway Change-Id: I3ac38aa63fe230908e63c0c8672c8c999a65abf0
OmniJaws "Just another weather service" is a minimized service to fetch weather data from OpenWeatherMap or Yahoo. Thanks to http://openweathermap.org/ for providing an unrestricted API key
OpenWeatherMap API http://openweathermap.org/current
Yahoo weather API https://developer.yahoo.com/weather/
Thanks to the original creators and contributors of the LockClock app https://github.com/CyanogenMod/android_packages_apps_LockClock
It provided a lot of insights and knowledge how to do this Some parts of the code like the provider access have been taken from it with minor modificatioons. Please check the file copyright headers for the origins of the files.
If you already include LockClock with your ROM you should consider if you really need this. The provider API is similiar and you dont need to different providers.
The default condition icon pack have also been extracted from LockClock
Condition icon packs support add activity with action "org.omnirom.WeatherIconPack" the name is used to defined the prefix for the image names default should be .weather.
<activity android:name=".weather_vclouds" android:label="LockClock (vclouds)" > <intent-filter> <action android:name="org.omnirom.WeatherIconPack" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity>
An example can be found here https://github.com/maxwen/WeatherIconSample