aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-01-19 04:30:26 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-01-19 04:31:52 +0100
commitfefeb242aec96a67eb91d9279c04e8fcb718f5fb (patch)
tree88cd0799f3290d59b9114321c471e07b6c217cf6
parent37b6ce35601d90aacb790c8e6907d684b7381292 (diff)
downloaddesktop-tools-fefeb242aec96a67eb91d9279c04e8fcb718f5fb.tar.gz
desktop-tools-fefeb242aec96a67eb91d9279c04e8fcb718f5fb.tar.xz
desktop-tools-fefeb242aec96a67eb91d9279c04e8fcb718f5fb.zip
wmstatus-weather.pl: fix weather icons
The API seems to have been removed entirely.
-rwxr-xr-xwmstatus-weather.pl3
1 files changed, 2 insertions, 1 deletions
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);
}