Package: libgweather / 3.36.1-3

Metadata

Package Version Patches format
libgweather 3.36.1-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
metno Use compat 2.0 API.patch | (download)

libgweather/weather-yrno.c | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 metno: use compat 2.0 api

Version 1.9, which we were using, was deprecated and will be removed soon,
so migrate to the compat XML output of the v2.0 API.

Closes: #65

metno Use GNOME specific subdomain.patch | (download)

libgweather/weather-yrno.c | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 metno: use gnome-specific subdomain

This allows the API provider to track libgweather usage.

metno Use as arguments separator in query.patch | (download)

libgweather/weather-yrno.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 metno: use "&" as arguments separator in query

According to the HTML5 spec ";" is no longer allowed. This was
automatically rewritten in Varnish, but was temporary measure
and was likely to disappear if on cache/load balancer change.

Closes: #72

metno Use alphabetical 2.0 symbol codes.patch | (download)

libgweather/weather-yrno.c | 113 55 + 58 - 0 !
1 file changed, 55 insertions(+), 58 deletions(-)

 metno: use alphabetical 2.0 symbol codes

The numerical codes are deprecated and scheduled for removal, so
replace them with the non-deprecated alphabetical codes as listed
in https://api.met.no/weatherapi/weathericon/2.0/.

https://gitlab.gnome.org/GNOME/libgweather/-/issues/67

gweather Only use 4 significant decimals for locations.patch | (download)

libgweather/gweather-private.c | 21 16 + 5 - 0 !
libgweather/gweather-private.h | 3 3 + 0 - 0 !
libgweather/test_libgweather.c | 16 16 + 0 - 0 !
libgweather/weather-iwin.c | 7 4 + 3 - 0 !
libgweather/weather-owm.c | 7 4 + 3 - 0 !
libgweather/weather-yrno.c | 7 4 + 3 - 0 !
6 files changed, 47 insertions(+), 14 deletions(-)

 gweather: only use 4 significant decimals for locations

1/1000th of a degree of longitude or latitude corresponds to around
100 meters. There's no reason for the weather to be any more precise
than this.

See https://www.thoughtco.com/degree-of-latitude-and-longitude-distance-4070616

Closes: #69

weather add app ID to HTTP user agent.patch | (download)

libgweather/gweather-weather.c | 27 25 + 2 - 0 !
1 file changed, 25 insertions(+), 2 deletions(-)

 weather: add app id to http user agent

met.no has requested we add the app ID even if we cannot provide
application contact info. See #82.