From d45d46104f90c9f7f9f1a21b1b38a64d323ce618 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 29 Jan 2020 20:47:15 -0800 Subject: [PATCH] Plugins/Wttr: force metric units --- Plugins/Wttr.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Wttr.pm b/Plugins/Wttr.pm index a2877290..7a56279f 100644 --- a/Plugins/Wttr.pm +++ b/Plugins/Wttr.pm @@ -121,7 +121,7 @@ sub get_weather { $location = lc $location; my $ua = LWP::UserAgent::WithCache->new(\%cache_opt, timeout => 10); - my $response = $ua->get("http://wttr.in/$location?format=j1"); + my $response = $ua->get("http://wttr.in/$location?format=j1&m"); my $json; if ($response->is_success) {