Browse Source

Updated Air API endpoint to include extra info

CauseFX 6 years ago
parent
commit
44ba34a073
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/functions/homepage-connect-functions.php

+ 1 - 1
api/functions/homepage-connect-functions.php

@@ -118,7 +118,7 @@ function getWeatherAndAir()
 				}
 				}
 			}
 			}
 			if ($GLOBALS['homepageWeatherAndAirAirQualityEnabled']) {
 			if ($GLOBALS['homepageWeatherAndAirAirQualityEnabled']) {
-				$endpoint = '/air-quality/v2/current-conditions?features=breezometer_aqi,local_aqi,health_recommendations,sources_and_effects,pollutants_concentrations,pollutants_aqi_information&metadata=true';
+				$endpoint = '/air-quality/v2/current-conditions?features=breezometer_aqi,local_aqi,health_recommendations,sources_and_effects,dominant_pollutant_concentrations,pollutants_concentrations,pollutants_aqi_information&metadata=true';
 				$response = Requests::get($apiURL . $endpoint . $info, $headers, $options);
 				$response = Requests::get($apiURL . $endpoint . $info, $headers, $options);
 				if ($response->success) {
 				if ($response->success) {
 					$apiData = json_decode($response->body, true);
 					$apiData = json_decode($response->body, true);