Slashdot Mirror


Weather Data Available in XML

wombatmobile writes "Wired reports the National Oceanic and Atmospheric Administration this week began providing weather data in an open access XML format. Previously, the data was technically available to the public, but in a format that's not easily deciphered. How will the free and easy availability of valuable data like this in XML affect the development of the web? One example is Tom Groves SVG weather. This type of visualization of XML data is about to fall within easy reach with nothing more than a text editor required as an authoring tool. From March 2005 SVG becomes part of the standard Mozilla/FireFox build. As an example of how web standards are supposed to work, what more could you hope to find?" We mentioned the policy change a few days ago.

18 of 198 comments (clear)

  1. If it crashes.... by stfvon007 · · Score: 4, Funny

    Do we get the blue sky of death?

    --
    All misspellings and grammatical errors in the above post are intentional and part of my artistic expression.
  2. The question is..... by BorisSkratchunkov · · Score: 5, Funny

    weather or not I'll use it.....

    I'm sorry, I'm sorry....it's another bad pun....I seriously need to talk to a psychologist about my BPS (Bad Pun Syndrome or Backup Power Supply, which ever you prefer).

    1. Re:The question is..... by daeley · · Score: 4, Funny

      I hate to rain on your parade, but your attempts to cloud the issues takes a hail of a lot of guts. What are you, three sleets to the wind? It snow wonder you're sorry!

      --
      I watched C-beams glitter in the dark near the Tannhauser gate.
  3. Re:What's my lat and alt? by bigberk · · Score: 4, Funny
    The XML requires latitude and altitude...
    OK, you're going to need: (1) a compass, (2) a stopwatch with a second hand, and (3) an astrolabe.

    ...or just look it up in a reference book
  4. Re:What's my lat and alt? by Anonymous Coward · · Score: 5, Informative

    Click on a city in your area on this site: http://www.timeanddate.com/worldclock/custom.html? continent=namerica The page for each city lists the coordinates.

  5. Extension for Firefox by FiReaNGeL · · Score: 4, Informative

    Don't miss out the wonderful WeatherFox extension for Firefox... crafteh coded this marvel after a suggestion of mine on Mozillazine Forums. International Forecast in your statusbar. Can't beat that!

    1. Re:Extension for Firefox by MP3Chuck · · Score: 4, Informative

      Except that now it's ForecastFox. Apparently there was some conflict with the website www.weatherfox.com (people going to weatherfox.com looking for WeatherFox extension support 'n stuff).

  6. NOAA? by MP3Chuck · · Score: 4, Funny

    Finally, a *AA action we can be happy about!

  7. Re:What's my lat and alt? by Davak · · Score: 4, Informative

    Yeah, you are right... that's the only information I need to chunk out a quick program running off the feed.

    Speaking of the feed...here's the URL that contains the actual XML information:
    http://www.nws.noaa.gov/forecasts/xml/


    I guess they didn't post it on the front page to decrease the slash effect.

  8. Next step, better forecasting by Eric+Giguere · · Score: 4, Funny

    It'll be easier to parse, but it won't be any more accurate.

    Eric
    1. Re:Next step, better forecasting by LiquidCoooled · · Score: 5, Funny

      The NOAA today started releasing accurate targeted weather data in XML format to a wide audience.
      However unfortunately, because of a large slashdotting, you cannot get todays weather until tomorrow.
      Several planned hurricanes were put on hold for a few days because of the disruption.
      Impatient internet users were caught and fined for illegally downloading and sharing todays weather. One user had a large tornado and numerous thunderstorms on his server.

      --
      liqbase :: faster than paper
  9. Re:Why SOAP by aluminum+boy · · Score: 4, Informative

    SOAP, being XML, is available via http. Anything available in SOAP can be opened / viewed as XML in most browsers.

  10. Re:Meanwhile, other governments still charge.. by lukewarmfusion · · Score: 4, Informative

    NOAA servers contain much more weather info than just US states and territories; my program was pulling down everything from Afghanistan to Zimbabwe. Which was good for me - the site was designed for world travelers.

  11. Weather Market by Doc+Ruby · · Score: 4, Interesting

    I want to see independent organizations datamining the NOAA weather data, running their own models, and making competing predictions. Then I want to see metaminers generating comparative "batting averages", keyed to current conditions, and get my weather forecasts from a client which knows which service is better at predicting the next few days/weeks/months starting with current conditions. That will give weather stenographers like the Weather Channel, and their TV news echo chamber, a real run for their money. Forecast@Home, anyone?

    --

    --
    make install -not war

  12. URL for HTTP-fetchable XML by ErichTheWebGuy · · Score: 4, Informative

    http://weather.gov/data/current_obs/seek.php

    The URL points to the RSS versions of the XML feeds. These have actually been available for quite some time.

    --
    bash: rtfm: command not found
  13. Re:Why SOAP by jdludlow · · Score: 4, Interesting

    SOAP uses HTTP as a transport layer option (usually). The reason why the added complexity is worth it is because it allows client applications to do things like "float temp = weatherSerivce.getTemp(cityID);" much more easily. (Note: I completely made up that example, but it's similar to what would actually be used.) The point is that the client doesn't really have to know and/or care that "weatherService" isn't a local call. The client also doesn't need to care that it's running Java locally and the server is running .NET (or whatever else it might be using).

    SOAP is just a piece of the larger and much more complicated Web Services unbrella. Understanding all of the specs involved is a huge task, but you can do some client-side tutorials that will explain quite a bit of the basics anyway. Most of the real work is done on the server, so if you ignore that bit of it to start with, the learning curve isn't anywhere near as steep. The Apache Axis project is a decent starting point, if you just want to play around with the technology. Installing Axis into Tomcat is about a minutes worth of effort, then you can spend hours exploring the various documents, examples, and tutorials.

  14. Re:SVG plugin for firefox? by g_braad · · Score: 4, Informative

    You need to recompile Firefox yourself or download the older 0.8 release from Mozilla.org which has SVG enabled.

    http://mozilla.org/projects/svg/

    another solution is to install svgview from adobe, like the 6.0 beta 1 and coppy the plugin files found in /progra~1/common files/adobe/adobe viewer 6/plugins/np* to the plugins dir from firefox (ofcourse only on windows).

    if you want to use the mozilla implementation of SVG, recompile is the only solution for now. is there someone out there who would be willing to create this so-called 'patch'?

    --
    F/OSS & IT Consultant
  15. weather.com been doing this for a while by Fishstick · · Score: 5, Informative
    I set up a little script a long time ago to get weather data from an XML feed from the weather channel for our office webcam. It's free and was really easy to use...

    http://www.weather.com/services/xmloap.html?
    #!/usr/local/bin/perl -w
    require LWP::UserAgent;
    use XML::DOM;
    use CGI qw(:standard);
    # first, get the XML feed
    my $ua = LWP::UserAgent->new(env_proxy => 1, keep_alive => 1, timeout => 30);
    my $base_url="http://xoap.weather.com/weather/local/6 0143?cc=*&prod=xoap";
    my $par="&par=[removed]";
    my $key="&key=[sign up to get one]";
    $response = $ua->get("$base_url$par$key");
    die "Error while getting ", $response->request->uri,
    " -- ", $response->status_line, "\nAborting"
    unless $response->is_success;
    my %weather = %$response;
    # then, parse out the crap we want
    my $parser = XML::DOM::Parser->new();
    foreach(keys %weather){
    $xmldoc = $parser->parse($weather{$_}) if(/content/);
    }
    foreach my $cur_cond ($xmldoc->getElementsByTagName('cc')){
    $curr_cond{'lastup'} = $cur_cond->
    getElementsByTagName('lsup')->item(0)->
    getFirstChild->getNodeValue;
    $curr_cond{'obsvst'} = $cur_cond->
    getElementsByTagName('obst')->item(0)->
    getFirstChild->getNodeValue;
    $curr_cond{'temp'} = cur_cond->
    getElementsByTagName('tmp')->item(0)->
    &nb s p; getFirstChild->getNodeValue;
    $curr_cond{'chill'} = $cur_cond->
    getElementsByTagName('flik')->item(0)->
    getFirstChild->getNodeValue;
    $curr_cond{'text'} = $cur_cond->
    getElementsByTagName('t')->item(0)->
    getFirstChild->getNodeValue;
    $curr_cond{'icon'} = cur_cond->
    getElementsByTagName('icon')->item(0)->
    getFirstChild->getNodeValue;
    }
    print header;
    print start_html("nice little cgi page to display the time/weather");
    print <<EOF;
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p >
    <p><font size="-1">WebCam is located on 9th floor in Itasca<br />
    pointed out southeast window overlooking Thorndale</font></p>
    <form name="clock" onSubmit="0">
    <input type="button" name="face" size=13 value="">
    </form>
    EOF
    print end_html;


    sorry about the atrocious formating - slashcode made me take out whitespace (what is the fricking point of an ecode tag supported if you can't post a small snippet like this without removing all the whitespace!?)

    --

    There is much cruelty in the universe, John.
    Yeah, we seem to have the tour map.