GNOME Bugzilla – Bug 166014
remove dead locations from Locations DB
Last modified: 2010-01-24 01:06:16 UTC
From Fedora: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=146676 The Gnome applet "gweather-applet-2" Weather Report 2.8.0 will not display information on the location "Chicago-Lakefront". The panel icon displays a question mark and a temperature reading of "--" and the "Details" information window lists all information as either "Invalid" or "Unknown." (Version 2.8.0)
Looks like this location is dead. It would seem that a number of other Chicago locations are also dead. We need someone local to give the area some love, and remove the dead locations from the list.
This is still an issue in CVS HEAD, setting Version to 2.11 and GNOME Version to 2.11/2.12, adding as a blocker for the Locations Love bug
A patch from someone in the Chicago area would be appreciated.
I've culled the METAR readings for the last three months to identify which stations aren't reporting and should be able to get the list together some time this weekend. I'm wondering how to deal with these stations, or the general problem of a selected station having either no reading or a very old one. Should it fall back to the closest neighbor (based on lat/lon coordinates)? Alternatively, the station field could be interpreted as a blank-separated list when there is a preference to fall back to specific stations.
Frank, do you have this list of stations to remove? I would very much like to remove all of the dead stations before the 2.16 release. I don't think moving people across is that important, it stands to reason that people are unlikely to be currently monitoring a station that isn't reporting.
Created attachment 70488 [details] station reports The attached file lists out the stations by METAR code with the number of hourly readings for each month between December 2005 and May 2006, followed by the total number of readings. The counts may be a little low -- machine outages, bugs in my perl script, that sort of thing -- but should be enough to identify which stations are dead or reporting very rarely.
So numbers with lots of zeros are dead? What are the top three lines?
Created attachment 70499 [details] mass deletes locations egrep " 0$" stations.txt | cut -f 1 > removals.txt ./mass_locations_delete.py Locations.xml.in < ~/Desktop/removals.txt >Locations.xml.out 2>output.txt diff -u Locations.xml.in Locations.xml.out > Locations.xml.in.diff
Created attachment 70500 [details] report from script This is the list of locations from the list that my mass remover removed from the XML file.
Created attachment 70501 [details] [review] patch to Locations.xml.in
*** Bug 326282 has been marked as a duplicate of this bug. ***
*** Bug 337305 has been marked as a duplicate of this bug. ***
*** Bug 337900 has been marked as a duplicate of this bug. ***
*** Bug 343779 has been marked as a duplicate of this bug. ***
*** Bug 345357 has been marked as a duplicate of this bug. ***