Fix units
This commit is contained in:
parent
b11ec93c83
commit
8783d52cc7
@ -12,7 +12,7 @@ class Weather_OWM extends Weather {
|
||||
global $SETTINGS;
|
||||
$apikey = $SETTINGS['apikeys']['openweathermap.org'];
|
||||
$url = "https://api.openweathermap.org/data/3.0/onecall";
|
||||
$json = ApiFetcher::get($url, ["lat" => $this->lat, "lon" => $this->lng, "exclude" => "minutely,hourly", "units" => "ca", "lang" => $SETTINGS['language']], ["appid" => $apikey]);
|
||||
$json = ApiFetcher::get($url, ["lat" => $this->lat, "lon" => $this->lng, "exclude" => "minutely,hourly", "units" => "metric", "lang" => $SETTINGS['language']], ["appid" => $apikey]);
|
||||
$resp = json_decode($json);
|
||||
|
||||
$currently = new Conditions();
|
||||
|
Loading…
x
Reference in New Issue
Block a user