Tordex Community

Full Version: using weather.com XML feed for weather plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am not sure if this has been mentioned before but weather.com has a nice XML weather feed. I was getting tired of sites like wunderground changing formats and found this nice since the data comes in a very structured format (and compact). Here is what it gives for the current conditions at my local airport.

Quote:<?xml version="1.0" encoding="ISO-8859-1"?>
<!--This document is intended only for use by authorized licensees of The Weather Channel. Unauthorized use is prohibited. Copyright 1995-2002, The Weather Channel Enterprises, Inc. All Rights Reserved.-->
<weather ver="2.0">
<head>
<locale>en_US</locale>
<form>MEDIUM</form>
<ut>F</ut>
<ud>mi</ud>
<us>mph</us>
<up>in</up>
<ur>in</ur>
</head>
<loc id="USCO0044">
<dnam>Broomfield, CO</dnam>
<tm>12:01 PM</tm>
<lat>39.92</lat>
<lon>-105.09</lon>
<sunr>7:02 AM</sunr>
<suns>5:28 PM</suns>
<zone>-7</zone>
</loc>
<cc>
<lsup>2/8/04 10:45 AM MST</lsup>
<obst>Broomfield, CO</obst>
<tmp>36</tmp>
<flik>31</flik>
<t>Mostly Cloudy</t>
<icon>28</icon>
<bar>
<r>29.88</r>
<d>rising</d>
</bar>
<wind>
<s>6</s>
<gust>N/A</gust>
<d>350</d>
<t>N</t>
</wind>
<hmid>35</hmid>
<vis>Unlimited</vis>
<uv>
<i>2</i>
<t>Minimal</t>
</uv>
<dewp>10</dewp>
</cc>
</weather>

You have to register first to access the XML feed at:

http://www.weather.com/services/oap.html

and a guide to using it is available at:

http://download.weather.com/web/xml/sdk.zip

It shows how to set up for your location and what features are available. It can also provide forecast information although I didn't show that in the example above. It provides information for locations worldwide.

Thought it might be of interest to some of you.

Rick.
Thank you very much for links!
I plan to make plugin named something like Weather Monitor Lite with using this XML feed. Now I found where to register for it Big Grin