Ming the Mechanic:
XML weather

The NewsLog of Flemming Funch
 XML weather2003-05-07 23:59
1 comment
by Flemming Funch

Adam Curry mentions he found weather.interceptvector.com which provides weather for just about any town in XML format. He was looking for a way of putting it into an RSS feed, and a fellow named Marcus made a script for that. That's cool. But actually I'd just like to have the current weather in my area reported in the sidebar on ming.tv. So I spent an hour figuring out how to do that. A cron job picks up the XML file for Van Nuys, California every hour and stores it in a cache file. And I then made an XSL document, which defines a way of transforming some of that into a little snippet of HTML for my sidebar. I use PHP with the Sablotron XSL processor compiled in. This is a pretty primitive use of it, but I just wanted to try something slightly useful. I'd post the code here if I could just figure out a way of showing it in raw form.

[< Back] [Ming the Mechanic]


1 comment

3 Oct 2009 @ 20:24 by Andrew @ : Free weather data feed
Do give http://www.worldweatheronline.com/ a try.  

Other stories in
2014-11-01 17:33: The conversation of work
2007-02-24 14:20: Writing books in HTML/CSS
2007-02-05 15:21: Software is hard
2006-11-19 21:30: Thingamy
2005-12-14 15:15: Ruby on Rails
2005-03-19 16:04: Comment and Refererrer Spam
2005-02-23 21:34: Wikipedia
2005-02-22 17:32: Mail
2005-02-10 16:00: More Google wizardry
2005-02-04 15:14: The Six Laws of the New Software

[< Back] [Ming the Mechanic] [PermaLink]? 

Link to this article as: http://ming.tv/flemming2.php/__show_article/_a000010-000779.htm
Main Page: ming.tv