3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-26 20:52:37 +01:00

Plugins/Wttr: force metric units

This commit is contained in:
Pragmatic Software 2020-01-29 20:47:15 -08:00
parent 4288785932
commit d45d46104f

View File

@ -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) {