From 03cad82cf84468b8c7e56978a57e208fda1bd3b2 Mon Sep 17 00:00:00 2001 From: incognico Date: Mon, 4 Sep 2023 11:47:50 +0200 Subject: [PATCH] Change legends.json URL as the WeatherIcon API is retired. --- lib/Weather/METNO.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Weather/METNO.pm b/lib/Weather/METNO.pm index 330316e..d25622b 100644 --- a/lib/Weather/METNO.pm +++ b/lib/Weather/METNO.pm @@ -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) {