Warning: Call-time pass-by-reference has been deprecated in /home/ribeiro/j5studios.com/projects/weather/class_path_parser.php on line 46

Today's Weather - the XML / CSS way

This weather map grabs hourly updates from http://weather.boygenius.com/ XML weather feeds (Thank you Todd!) via a cron job. It then formats the information using my custom class written specifically for the job (and parses the XML using the base classes available at PHPxmlclasses, and then using cascading style sheets (the image is from a NASA satellite), displays on the map below.

Requirements

Download Source Code

I'm offering the source code (proof of concept) for download under the GPL, and for the most part with no instructions. Some of the code is commented, so you can probably figure it out. You can do as you wish with this code, but I'd appreciate a note if you use it on your page, or some variation. I'll even put your link on this page.

Download: weatherPOC.zip

Error:XML error: Invalid document end at line 32
Clear
Clear

Modesto

67°F / 19°C
Wind: Northwest 9 MPH
Rel. Humidity: 81%
Dewpoint: 61°
Barometer: 29.99S
Updated: June 5 @ 3:19am PST
Error:XML error: Invalid document end at line 32
Mostly Cloudy
Mostly Cloudy

San Francisco

61°F / 16°C
Wind: West 13 MPH
Rel. Humidity: 87%
Dewpoint: 57°
Barometer: 30.04S
Updated: June 5 @ 3:19am PST
Error:XML error: Invalid document end at line 31
Cloudy
Cloudy

S. Lake Tahoe

50°F / 10°C
Wind: Calm
Rel. Humidity: 77%
Dewpoint: 43°
Barometer: 30.20S
Updated: June 5 @ 3:19am PST
Error:XML error: Invalid document end at line 31
Partly Cloudy
Partly Cloudy

Sacramento

63°F / 17°C
Wind: Southeast 8 MPH
Rel. Humidity: 90%
Dewpoint: 60°
Barometer: 29.99R
Updated: June 5 @ 3:19am PST