Ticket #4954: scripts.diff
File scripts.diff, 2.9 KB (added by , 16 years ago) |
---|
-
animaps.pl
old new 1 1 #!/usr/bin/perl -w 2 use lib '/usr/local/share/mythtv/mythweather/scripts/us_nws/'; 2 3 use strict; 3 4 use Getopt::Std; 4 5 use LWP::Simple; -
maps.pl
old new 1 1 #!/usr/bin/perl -w 2 use lib '/usr/local/share/mythtv/mythweather/scripts/us_nws/'; 2 3 use strict; 3 4 use Getopt::Std; 4 5 use LWP::Simple; -
ndfd18.pl
old new 1 1 #!/usr/bin/perl -w 2 use lib '/usr/local/share/mythtv/mythweather/scripts/us_nws/'; 2 3 use strict; 3 4 use NDFDParser; 4 5 use NWSLocation; … … 147 148 $icon = $result->{$time}->{'conditions-icon_forecast-NWS'}; 148 149 $icon =~ s/.*\/([a-z0-9_]+[.][j][p][g])/$1/; 149 150 local *FH; 150 open(FH, " icons") or die "Cannot open icons";151 open(FH, "/usr/local/share/mythtv/mythweather/scripts/us_nws/icons") or die "Cannot open icons"; 151 152 while(my $line = <FH>) { 152 153 if ($line =~ /${icon}::/) { 153 154 $line =~ s/.*:://; -
ndfd.pl
old new 1 1 #! /usr/bin/perl -w 2 use lib '/usr/local/share/mythtv/mythweather/scripts/us_nws/'; 2 3 3 4 #TODO the icons aren't very meaningful, the server gives them to us for 3 or 6 4 5 # hr intervals, but since we're parsing for 12 hour, that seem a little useless … … 188 189 $icon = $result->{$iconkey}->{'conditions-icon_forecast-NWS'}; 189 190 $icon =~ s/.*\/([a-z0-9_]+[.][j][p][g])/$1/; 190 191 local *FH; 191 open(FH, " icons") or die "Cannot open icons";192 open(FH, "/usr/local/share/mythtv/mythweather/scripts/us_nws/icons") or die "Cannot open icons"; 192 193 while(my $line = <FH>) { 193 194 if ($line =~ /${icon}::/) { 194 195 $line =~ s/.*:://; -
nws-alert.pl
old new 1 1 #!/usr/bin/perl -w 2 use lib '/usr/local/share/mythtv/mythweather/scripts/us_nws/'; 2 3 package NWSAlert; 3 4 use strict; 4 5 use XML::Parser; -
nwsxml.pl
old new 1 1 #! /usr/bin/perl -w 2 use lib '/usr/local/share/mythtv/mythweather/scripts/us_nws/'; 2 3 3 4 use strict; 4 5 use XML::Simple; … … 116 117 $key = 'weather_icon'; 117 118 $xml->{$key} = 'unknown.png'; 118 119 local *FH; 119 open(FH, " icons") or die "Cannot open icons";120 open(FH, "/usr/local/share/mythtv/mythweather/scripts/us_nws/icons") or die "Cannot open icons"; 120 121 while(my $line = <FH>) { 121 122 chomp $line; 122 123 if ($line =~ /$xml->{'icon_url_name'}::/) {