Skip to content

Commit

Permalink
update weather refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
causefx committed May 26, 2022
1 parent 36697c0 commit b1299cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/homepage/weather.php
Expand Up @@ -111,7 +111,8 @@ public function getWeatherAndAirData()
try {
if ($this->config['homepageWeatherAndAirWeatherEnabled']) {
$endpoint = '/weather/v1/forecast/hourly?hours=120&metadata=true';
$response = Requests::get($apiURL . $endpoint . $info);
$options = $this->requestOptions($apiURL, $this->config['homepageWeatherAndAirRefresh']);
$response = Requests::get($apiURL . $endpoint . $info, [], $options);
if ($response->success) {
$apiData = json_decode($response->body, true);
$api['content']['weather'] = ($apiData['error'] === null) ? $apiData : false;
Expand Down

0 comments on commit b1299cd

Please sign in to comment.