Ticket #4169: mythweather-rainicons.patch

File mythweather-rainicons.patch, 1.8 KB (added by otto at kolsi dot fi, 16 years ago)
  • mythweather/mythweather/scripts/bbccurrentxml.pl

     
    146146       $weather_string =~ /^thundery showers$/i) {
    147147    printf "weather_icon::thunshowers.png\n";
    148148}
    149 elsif ($weather_string =~ /^light snow$/i ||
    150        $weather_string =~ /^heavy snow$/i) {
    151     printf "weather_icon::thunshowers.png\n";
     149elsif ($weather_string =~ /^heavy snow$/i) {
     150    printf "weather_icon:snowshow.png\n";
    152151}
     152elsif ($weather_string =~ /^light snow$/i) {
     153    printf "weather_icon::flurries.png\n";
     154}
     155elsif ($weather_string =~ /^sleet$/i) {
     156        printf "weather_icon::rainsnow.png\n";
     157}
    153158else {
    154159    printf "weather_icon::unknown.png\n";
    155160}
  • mythweather/mythweather/scripts/bbcthreedayxml.pl

     
    145145        $weather_string =~ /^thundery showers$/i) {
    146146        printf "icon-" . $i . "::thunshowers.png\n";
    147147    }
    148     elsif ($weather_string =~ /^light snow$/i ||
    149         $weather_string =~ /^heavy snow$/i) {
    150         printf "icon-" . $i . "::thunshowers.png\n";
     148    elsif ($weather_string =~ /^heavy snow$/i) {
     149        printf "icon-" . $i . "::snowshow.png\n";
    151150    }
     151    elsif ($weather_string =~ /^light snow$/i) {
     152        printf "icon-" . $i . "::flurries.png\n";
     153    }
     154    elsif ($weather_string =~ /^sleet$/i) {
     155        printf "icon-" . $i . "::rainsnow.png\n";
     156    }
    152157    else {
    153158        printf "icon-" . $i . "::unknown.png\n";
    154159    }