Using SimpleXML to get Weather Data from Yahoo!
Saturday, July 31st, 2010One of my clients
is a baker, and the weather data is very important to him. Things like weather conditions and temperature affect buying patterns, and things like humidity affect water saturation in recipes. So, obviously, collecting the weather data for him to store so he can predict and refine his production was a goal of ours. I’d read a post on CSS Tricks in the past that showed how to collect weather information from Yahoo! Weather’s RSS API. I used his code as a base for creating a class so that I could collect the data we needed as an object. Read on for the code. (more…)