Fix units

This commit is contained in:
Skylar Ittner 2023-02-28 20:15:53 -07:00
parent b11ec93c83
commit 8783d52cc7

View File

@ -12,7 +12,7 @@ class Weather_OWM extends Weather {
global $SETTINGS; global $SETTINGS;
$apikey = $SETTINGS['apikeys']['openweathermap.org']; $apikey = $SETTINGS['apikeys']['openweathermap.org'];
$url = "https://api.openweathermap.org/data/3.0/onecall"; $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); $resp = json_decode($json);
$currently = new Conditions(); $currently = new Conditions();