From fefeb242aec96a67eb91d9279c04e8fcb718f5fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Fri, 19 Jan 2024 04:30:26 +0100 Subject: wmstatus-weather.pl: fix weather icons The API seems to have been removed entirely. --- wmstatus-weather.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wmstatus-weather.pl') diff --git a/wmstatus-weather.pl b/wmstatus-weather.pl index d5252f2..2d60bc4 100755 --- a/wmstatus-weather.pl +++ b/wmstatus-weather.pl @@ -20,7 +20,8 @@ my %legends; sub retrieve_legends { # HTTP/Tiny supports TLS, but with non-core IO::Socket::SSL, so use cURL open(my $sock, '-|', 'curl', '-sSA', $agent, - "$base/weathericon/2.0/legends.txt") or return $!; + 'https://raw.githubusercontent.com/' . + 'metno/weathericons/main/weather/legend.csv') or return $!; while (local $_ = <$sock>) { $legends{$1} = $2 if /^(.+?),(.+?),/ } close($sock); } -- cgit v1.2.3