After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 166014 - remove dead locations from Locations DB
remove dead locations from Locations DB
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: gweather
git master
Other All
: Normal minor
: 2.16
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
: 326282 337305 337900 343779 345357 (view as bug list)
Depends on:
Blocks: locations-love
 
 
Reported: 2005-02-02 08:33 UTC by Mark McLoughlin
Modified: 2010-01-24 01:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
station reports (284.49 KB, text/plain)
2006-08-08 14:16 UTC, Frank Solensky
  Details
mass deletes locations (699 bytes, text/x-python)
2006-08-08 16:47 UTC, Danielle Madeley
  Details
report from script (68.39 KB, text/plain)
2006-08-08 16:48 UTC, Danielle Madeley
  Details
patch to Locations.xml.in (700.17 KB, patch)
2006-08-08 16:50 UTC, Danielle Madeley
committed Details | Review

Description Mark McLoughlin 2005-02-02 08:33:17 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)
Comment 1 Danielle Madeley 2005-02-02 09:03:29 UTC
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.
Comment 2 Brent Smith (smitten) 2005-07-15 17:15:53 UTC
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
Comment 3 Danielle Madeley 2005-07-18 23:33:51 UTC
A patch from someone in the Chicago area would be appreciated.
Comment 4 Frank Solensky 2006-01-05 13:05:18 UTC
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.
Comment 5 Danielle Madeley 2006-08-07 01:43:35 UTC
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.
Comment 6 Frank Solensky 2006-08-08 14:16:27 UTC
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.
Comment 7 Danielle Madeley 2006-08-08 15:53:41 UTC
So numbers with lots of zeros are dead?

What are the top three lines?
Comment 8 Danielle Madeley 2006-08-08 16:47:43 UTC
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
Comment 9 Danielle Madeley 2006-08-08 16:48:38 UTC
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.
Comment 10 Danielle Madeley 2006-08-08 16:50:07 UTC
Created attachment 70501 [details] [review]
patch to Locations.xml.in
Comment 11 Danielle Madeley 2006-08-20 15:00:42 UTC
*** Bug 326282 has been marked as a duplicate of this bug. ***
Comment 12 Danielle Madeley 2006-08-20 15:01:04 UTC
*** Bug 337305 has been marked as a duplicate of this bug. ***
Comment 13 Danielle Madeley 2006-08-20 15:01:14 UTC
*** Bug 337900 has been marked as a duplicate of this bug. ***
Comment 14 Danielle Madeley 2006-08-20 15:01:26 UTC
*** Bug 343779 has been marked as a duplicate of this bug. ***
Comment 15 Danielle Madeley 2006-08-20 15:01:53 UTC
*** Bug 345357 has been marked as a duplicate of this bug. ***