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.
|
|