mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
Plugins/Wttr: force metric units
This commit is contained in:
parent
4288785932
commit
d45d46104f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user