DO NOT USE IN YOUR ROM!!! Read Commit Message

DO NOT MERGE in your own ROM! This isn't because we want to be assholes
about it but because OWM allows only 60 free calls per minute and the
more people that use this API key, the more calls are send their way. We
end up losing access and if you use this then you will lose access.

Nobody wins if you decide to use our keys.

Create your own, takes 30 seconds
https://openweathermap.org/appid#get

https://github.com/AquariOS/packages_services_OmniJaws/commit/f6467bf84082595c051a2629c0ebf39f3514e6f5
2 files changed
tree: 2f6ad29766f3ccc44d24bf71c25661c3d615c034
  1. res/
  2. src/
  3. .gitignore
  4. Android.mk
  5. AndroidManifest.xml
  6. proguard-project.txt
  7. README.md
  8. yahoo-weather-condition-codes.xml
README.md

About

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