As a great fan of the weather module, I was sad to see it continually fail as weatherroom.com failed...
I have updated the module code to use rssweather.com.
Someone with greater xml parsing skills may be able to do a more beautiful job.
Long live regular expressions!!
The main change between the two feeds, is that rssweather.com provides the data in a 'content:encoded' tag. I had to use regular expressions to extract the relevant information from the data as such:
case "CONTENT:ENCODED":
$stuff = preg_replace("/(.*)\
(.*)/i", "$1$2", $data);
while (preg_match("/(.*)\<[^>]+\>(.*)/i", $stuff)) {
$stuff = preg_replace("/(.*)\<[^>]+\>(.*)/i", "$1$2", $stuff);
}
if (strpos($data, "humidity")) {
$this->weather["humidity"] = $stuff;
} else if (strpos($data, "windspeed")) {
$this->weather["wind"] = $this->weather["wind"] . $stuff;
} else if (strpos($data, "winddir")) {
$this->weather["wind"] = $stuff . $this->weather["wind"];
} else if (strpos($data, "pressure")) {
$this->weather["barometer"] = $stuff;
} else if (strpos($data, "dewpoint")) {
$this->weather["dewpoint"] = $stuff;
} else if (strpos($data, "heatindex")) {