ajkidle wrote: 
> Perhaps quoting myself is poor form -- sorry about that.
> 
> I looked through the Plugin.pm file and couldn't find a smoking gun for
> this issue.  But looking at weather.com, I wonder if I've found it. 
> I'll bet the plugin is scraping this page 
> 
> http://www.weather.com/weather/today/Ann+Arbor+MI+USMI0028:1:US
> 
> and it's grabbing the "Day" and "Night" headers, and adding a "To"
> prefix.  Anyone savvy enough (and interested enough) to convert the page
> scrape to all lower case?

You can look for this line in your plugin.pm file near line 3025 and
change it according to your preference for mixed case or all upper case.


Code:
--------------------
    
  Current line of code
  $wetData{0}{'forecastTOD'} = 'To' . $1;
  
  Mixed
  $wetData{0}{'forecastTOD'} = 'To' . lc($1);
  
  All Upper
  $wetData{0}{'forecastTOD'} = 'TO' . uc($1);
  
  
--------------------


Note that "TODAY", "TOMORROW", and "TOMORROW NIGHT" are hard coded
elsewhere in the code.  You can search for them and also change their
case to your preference.

Cheers... Don


------------------------------------------------------------------------
BoomX2's Profile: http://forums.slimdevices.com/member.php?userid=33529
View this thread: http://forums.slimdevices.com/showthread.php?t=14327

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to