| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
When deserialising named timezones, make sure to hand out a reference to
the GWeatherLocation, as all the callers (and the public API) expect a
reference to be handed out.
This fixes a crash in gnome-shell when garbage collection is triggered
and the returned location is unreferenced.
See https://bugzilla.redhat.com/show_bug.cgi?id=1577561
|
|
|
|
|
|
|
|
| |
This will crash when the timezones are listed as the UTC named timezone
from the global_world tree variable will have been freed, and then
accessed again.
See https://bugzilla.redhat.com/show_bug.cgi?id=1577561
|
| |
|
|\
| |
| |
| |
| | |
Fix metar data
See merge request GNOME/libgweather!5
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Commit 283afc2d23355def1c1bab70a641f40cea52ba7f switched to new
METAR data provider, but did not fully update code to properly
extract METAR data.
The code still assumes that data are separated by newlines. That
means that now extracted data includes part of opening raw_text
tag, location code and closing raw_text tag.
Fix this by moving pointer to correct position to make sure that
xml tag and location code is not included. Also search for
closing tag to exclude it from data.
Before:
ext>EVRA 241450Z 22011KT 9999 -SHRA SCT034CB OVC039 11/05 Q1005 NOSIG</raw_text>\u000d
After:
241450Z 22011KT 9999 -SHRA SCT034CB OVC039 11/05 Q1005 NOSIG
|
|\ \
| | |
| | |
| | |
| | | |
Remove closed Dal Molin Military Airport
See merge request GNOME/libgweather!7
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Quick search confirms that it closed down and doesn’t send METAR anymore:
https://en.wikipedia.org/wiki/Vicenza_Airport
https://virtualglobetrotting.com/map/dal-molin-airport/
https://bugzilla.gnome.org/show_bug.cgi?id=794224
|
|/ |
|
|
|
|
|
| |
Given an ICAO code, fetch the METAR weather for that station. This makes
it easier to debug problems with the live system.
|
|
|
|
| |
(cherry picked from commit 08b14a9c180bf27e13103ca4c8340a8d3f930c5b)
|
|
|
|
| |
(cherry picked from commit c2ab899209deba35c60918ba37098a612a8f046b)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
lib: Fix memory and D-Bus match rule leaks
See merge request GNOME/libgweather!3
|
| |
| |
| |
| |
| |
| |
| |
| | |
From #3:
> The GWeatherInfo settings object is never freed leading not only
> to a memory leak, but also to a dbus match rule leak, which on
> the system bus can quickly result in reaching the maximum amount
> of allowed match rules. See gnome-shell#96.
|
| |
| |
| |
| | |
(cherry picked from commit 57b0f1cf79dc3220a99044b09fa5088aea072bb2)
|
| |
| |
| |
| | |
(cherry picked from commit c62ff3bbba064f85c43a925f4a126c22bb1fbe84)
|
| |
| |
| |
| | |
(cherry picked from commit a2b5b2efeac3335b478e7ef86e0d10be3fcf3be2)
|
| |
| |
| |
| | |
(cherry picked from commit f4bb67837d964a46bdf7eb4d6edc146fc82253c5)
|
| |
| |
| |
| | |
(cherry picked from commit c797cec4e99ff6b5f1634eae59b3c33d84a0605d)
|
| |
| |
| |
| | |
(cherry picked from commit 6f1ed93e95036ec36c166aa93f6eee4d0214e486)
|
| | |
|
|/ |
|
|
|
|
|
| |
Point to gitlab for new issues, wiki for how to contribute to the
locations file, and developer.gnome.org for the API docs.
|
|
|
|
|
|
| |
within the same state or country.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
|
| |
Check for duplicate weather stations in country or state, so as to avoid
having duplicates listed at the same level.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
|
| |
Add gweather_location_level_to_string() to make printing the level of a
location easier, and ease debugging.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
|
|
| |
Rename the test as it's checking whether weather stations are badly
duplicated, not whether they're unique in the state or country.
Duplicate weather stations are allowed across state and country borders.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
|
|
| |
Add an environment variable to disable the copy of weather stations to
attach them to cities. This makes it easier to find duplicate weather
stations.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
| |
Weather stations need to be attached to a state or country now.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
|
|
| |
This reverts commit 5583da22fbe1d56e0280cdf37deeed5b146574e9.
Now that the script has been used, no need to keep it around.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
| |
And use this to find the closest weather station for a particular city.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
|
|
|
|
|
| |
Move <location>s to the administrative division above, be it <state> or
<country> so that weather stations can be shared between multiple cities
without the need to duplicate them.
We can then use this to list major cities, and available
airports/weather stations, without having to associate them too closely.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
|
| |
Warn when trying to get distance between 2 locations and one of them has
no coordinates.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
|
| |
And not to country or state. As those don't have coordinates anyway,
they would have caused warnings and returned invalid values.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
|
|
| |
Skip over elements that don't have valid coordinates when trying to find
the closest weather station, as that would have returned incorrect
values.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
| |
Now that nothing uses it, remove ADM2.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It's only used in the Italy, and matches to the description of a
"state" and the GWEATHER_LOCATION_ADM1 level:
@GWEATHER_LOCATION_ADM1: A location representing a "first-level
administrative division"; ie, a state, province, or similar
division.
The only difference between ADM1 and ADM2 levels were that ADM1 levels
are shown in the location entry, whereas ADM2 levels are not.
https://bugzilla.gnome.org/show_bug.cgi?id=792328
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|