Results 1 to 8 of 8

Thread: Want to add a new location to the Gnome Weather Applet

  1. #1
    Join Date
    Aug 2005
    Location
    Cottonwood, AZ
    Beans
    102
    Distro
    Ubuntu 12.04 Precise Pangolin

    Want to add a new location to the Gnome Weather Applet

    I have found a post (http://ubuntuforums.org/showthread.php?t=1331653) that tells me how to add a location to the Locations.xml file for the Gnome Weather Applet (NOT THE CLOCK/WEATHER APPLET). However when I try to open the file (the file is 916 kb) in bluefish it just hangs and never opens. I have tried doing something with both vim and nano but my expertise in using either of those is non-existent. If someone can help me understand how to open a file in vim or nano so I can edit this file (or ANY way to edit this file) I would be SOOOOO appreciative!!! THANKS!!

    Am running Lucid.
    Linux user #425510 - Ubuntu user #9190

  2. #2
    Join Date
    Feb 2010
    Location
    Silicon Valley
    Beans
    1,898
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Want to add a new location to the Gnome Weather Applet

    I figured out how to edit the Locations.xml file and to add an entry. Just for you I added a Cottonwood, AZ entry. Instead of cutting/pasting a lengthy procedure, I've attached a text file describing the methods I used. See if it works for you.

    So not everyone has to open the file, here is the key bit. With the following sed command you can transform Locations.xml into a compatible but easily-edited format:
    Code:
    sed 's/\(<[a-z]\)/\n\1/g' < Locations.xml > Loc1.xml
    Attached Files Attached Files

  3. #3
    Join Date
    Aug 2005
    Location
    Cottonwood, AZ
    Beans
    102
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Want to add a new location to the Gnome Weather Applet

    HOLY CRAP!!!!!!! THAT DID IT!!!!!! THANKS!!!

    This should be a HOW TO somewhere here in the forums. I have seen a number of questions for this particular problem.

    Thanks again!!!=D>
    Linux user #425510 - Ubuntu user #9190

  4. #4
    Join Date
    Jun 2010
    Location
    Biloela, QLD,Australia
    Beans
    10
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Unhappy Re: Want to add a new location to the Gnome Weather Applet

    Hi,
    Have done first step, made a copy of file in user/share....

    following second step did not work making a file to work on in HOME.

    My abilities are about copy and past!
    what is correct code for second step, even if just put file to desktop.
    found info for Biloela here
    http://www.bom.gov.au/products/IDQ60...01.94376.shtml
    help appreciated
    thanks

  5. #5
    Join Date
    Feb 2010
    Location
    Silicon Valley
    Beans
    1,898
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Want to add a new location to the Gnome Weather Applet

    Regarding gweather supporting Biloela and the nearby Thangool Airport (YTNG), it seems there is no METAR weather report for Thangool or any nearby airport.

    This is the web interface for METAR reports: http://weather.noaa.gov/weather/metar.shtml so you can look up your nearby airport codes.

  6. #6
    Join Date
    Feb 2010
    Location
    Silicon Valley
    Beans
    1,898
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Want to add a new location to the Gnome Weather Applet

    Quote Originally Posted by majoda View Post
    following second step did not work making a file to work on in HOME.
    Based on your email, I think you might have typed the directory name incorrectly. Try using the $HOME/Documents/ directory (note the capital-D).

    Here's another quick tip. Instead of the 'sed' command in those instructions, use the xmllint(1) command, which produces nicely indented XML.
    Code:
    $ xmllint --format Locations.xml > Loc1.xml
    Last edited by gmargo; January 30th, 2011 at 10:37 PM.

  7. #7
    Join Date
    Jun 2010
    Location
    Biloela, QLD,Australia
    Beans
    10
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Want to add a new location to the Gnome Weather Applet

    As can be seen by site I attached, weather reports e=are done every 30 minutes, not posted onto the internation web site that gmargo attached.
    Must be some thing in programme to get from this site.
    Ross

  8. #8
    Join Date
    Jun 2010
    Location
    Biloela, QLD,Australia
    Beans
    10
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Want to add a new location to the Gnome Weather Applet

    p { margin-bottom: 0.21cm; } whether (weather/wether) I remove the <code>YTNG</code> and leave the line <zone>@ID039089</zone> which is the link to weather readings.
    radar is the site of nearest at Gladstone.




    <city>
    <name>Biloela</name>
    <coordinates>-24.401000 150.511000</coordinates>

    <location>
    <name>Thangool Airport</name>
    <code>YTNG</code>
    <zone>@ID039089</zone>
    <coordinates>-24.491535 150.573539</coordinates>
    <radar>@IDR232</radar>
    <coordinates>-23.869322 151.219876</coordinates>
    </location>
    </city>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •