johnluetke / weatherapi Goto Github PK
View Code? Open in Web Editor NEWAbstracts online weather services into a simple API
License: Apache License 2.0
Abstracts online weather services into a simple API
License: Apache License 2.0
WeatherAPI in turn depends on org.reflections, which has a Maven profile-based dependency on javassist. Gradle does not support resolving placeholders in published POMs, so you get errors like:
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve org.javassist:javassist:${javassist.version}.
Required by:
:weatherenrich:0.1.0 > net.johnluetke.WeatherAPI:WeatherAPI:0.9.4 > org.reflections:reflections:0.9.9-RC2
> Illegal character in path at index 55: http://repo1.maven.org/maven2/org/javassist/javassist /${javassist.version}/javassist-${javassist.version}.pom
Otherwise have to do currently:
IWeather weather = WeatherAPI.getWeather("New%20York%20City", "NY");
Because they provide historical data.
Happy to do this one.
For high-volume environments like Hadoop and Storm, performing an API lookup for every record is a non-starter.
Therefore, it would be worth adding an LRU cache into the WeatherAPI. In Scala we normally use Twitter's LruMap but we could use the Java equivalent instead.
We take this approach in https://github.com/snowplow/scala-forex
double getPercipitation();
We are interested in using WeatherAPI as the foundation of a weather-enrichment for Snowplow (snowplow/snowplow#456).
A showstopper requirement is the ability to get the weather at a specific timestamp. If we are (re-processing) 3 months of events from a mobile game, the current weather in a given location is a non-starter.
Would you be open to updating the API to support a provided timestamp? We would be happy to help integrate a provider that provides time-based weather.
Because reading a WeatherAPI.properties
on the classpath is too inflexible.
We need more weather providers. Please feel free to fork and implement one!
http://blog.programmableweb.com/2012/01/11/12-json-weather-apis/
At present, the first provider that can fulfill the request is used, even if multiple providers can do so. Is this acceptable? Or should a second algorithm be implemented for when > 1 providers can fulfill a request?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.