using weather.com XML feed for weather plugin
Started by BlueHeaven


Rate this topic
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


2 posts in this topic
BlueHeaven
Junior Member
**


0
40 posts 12 threads Joined: Jun 2003
02-08-2004, 11:07 AM -
#1
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.


Messages In This Thread
[No subject] - by BlueHeaven - 02-08-2004, 11:07 AM
[No subject] - by Yuri Kobets - 02-08-2004, 04:34 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)