Skip to content

Commit

Permalink
Change legends.json URL as the WeatherIcon API is retired.
Browse files Browse the repository at this point in the history
  • Loading branch information
incognico committed Sep 4, 2023
1 parent bb3b50d commit 03cad82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Weather/METNO.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ my ($data, @times, $weather, $closest, $symbols);

my $api_ver = '2.0';
my $api_url = 'https://api.met.no/weatherapi/locationforecast/'.$api_ver.'/complete';
my $sym_url = 'https://api.met.no/weatherapi/weathericon/'.$api_ver.'/legends';
my $sym_url = 'https://distfiles.lifeisabug.com/metno/legends.json';
my $sym_tmp = '/tmp/lwp-metno-legends.json';
my $sym_sec = 604800; # seconds to $sym_tmp expiry
my $sym_sec = 2630000; # seconds to $sym_tmp expiry

sub new ($class, %args)
{
Expand Down

0 comments on commit 03cad82

Please sign in to comment.