~vcs-imports/libgweather/+git/libgweather:wip/forecasts

Last commit made on 2012-12-01
Get this branch:
git clone -b wip/forecasts https://git.launchpad.net/~vcs-imports/libgweather/+git/libgweather

Branch merges

Branch information

Name:
wip/forecasts
Repository:
lp:~vcs-imports/libgweather/+git/libgweather

Recent commits

231d7ad... by Giovanni Campagna <email address hidden>

Fix day/night icons for forecast infos

We need to do the sun calculations for all GWeatherInfos, not just the
master one, as those values are used in get_icon_name().
Also, fix get_icon_name() to use the time the info refers to, not current
time.

2294d34... by Giovanni Campagna <email address hidden>

Add a second provider for the yr.no service

yr.no provides an API also at api.yr.no, which uses a similar format
but accepts geographical coordinates in place of Geonames, so it's usable
for all locations known to libgweather.

572844a... by Giovanni Campagna <email address hidden>

Prefer Yahoo! Weather over Yr.no if available and enabled.

Yahoo! Weather has better data (it provides minimum and maximum temperature,
for one), and we can know for sure if it's going to work or not, so we can
easily fallback on yr.no

cc75314... by Giovanni Campagna <email address hidden>

GWeather: avoid opening and parsing the database for each forecast element

Retrieve the world GWeatherLocation from the one passed in, if none is
provided explicitly. This avoids creating a new world for each GWeatherInfo
created by cloning the master one.

e9ffc08... by Giovanni Campagna <email address hidden>

Expose legal attribution for applications

This is required to be compliant with the term and conditions of the
yr.no service

4ace772... by Giovanni Campagna <email address hidden>

Allow enabling a subset of weather data providers

Not all providers are under the same licence, or have terms that are
acceptable for all applications. This allows individual apps to choose
what's best for them.

5cba39a... by Giovanni Campagna <email address hidden>

Add yr.no backend for weather forecast information

yr.no is the meteorology office of Norway, and they provide free weather
forecast data for all countries across the world.
yr.no requires an attribution notice in every application, so the next
commit will allow disabling it.

ae3e20b... by Giovanni Campagna <email address hidden>

Update Italian locations to include province

This way, weather forecast works for the entirety of Italy.
Other countries may need a similar treatment, but I don't know
enough geography to do this alone.

79a6010... by Giovanni Campagna <email address hidden>

Add support for hidden intermediate administrative divisions

yr.no wants to see the district/region name at all times, but we don't
want to show them in the location entry. Let's put ADM2 to good use for
this.

349f453... by Giovanni Campagna <email address hidden>

Add Yahoo! Weather forecast provider.

Adds a forecast provider that uses Yahoo! Weather RSS channels to
retrieve informations. For the time being, this requires a new tag
in the database, <yahoo-woeid>, containing a Where on Earth ID (the
one for Milan is provided for testing purposes).
The matchings from Yahoo condition codes to GWeatherConditions and
GWeatherSky need to be checked.