> Yup. Same here. My weather is for London, UK if that helps.

Same here too. Looks like weather.com has changed their html code. Until 
Greg updates his plugin, you can use this small patch to parse at least 
temperature, feels like, humidity and wind data.


--- Plugin.orig 2007-08-22 19:52:25.000000000 +0300
+++ Plugin.pm   2007-08-22 20:26:29.000000000 +0300
@@ -2501,17 +2501,18 @@
     @btmLinePreSpace = (); #Wipe old bottom line pre spaces (although 
they probably wont change)

         for (@ary) {
-               if (/obsTempTextA>(-*\d+)\s*&deg\;F.+Feels 
Like<BR>\s*(-*\d+)\s*\&d/) {
+               if (/obsTempTextA">(-*\d+)\s*&deg\;F/) {
                                 $temperatureF = $1;
-                               $feelslikeF = $2;
-
                                 $temperatureC = FtoC($temperatureF);
-                               $feelslikeC = FtoC($feelslikeF);
                 }
-               elsif (/<TD VALIGN="top"  CLASS="obsTextA">(\d+%)<\/td>/) {
+               elsif (/Feels Like<br.>(-*\d+)\s*&deg\;F/) {
+                               $feelslikeF = $1;
+                               $feelslikeC = FtoC($feelslikeF);
+        }
+               elsif (/Humidity.*crowval">(\d+%)<\/div>/) {
                         $humidity = $1;
                 }
-               elsif (/CLASS="obsTextA">From (.+) at (\d+) mph/) {
+               elsif (/class="crowval">From (.+) at (\d+) mph/) {
                         if ($windspeedUnit == 0) { #miles/hr
                                 $windspeed = $1 . $2;
                         }

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to