The official source code for Serenum API. https://api.serenum.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
587 B

<?php
if(!in_array('airp', $arr_excluded)) {
$arr_airpollution = [
'quality' => [
"grade" => air_pollution_quality((int)$airpollution_aqi, 'grade'),
"colour" => air_pollution_quality((int)$airpollution_aqi, 'colour')
],
'aqi' => (int)$airpollution_aqi,
'co' => (float)$airpollution_co,
'no' => (float)$airpollution_no,
'no2' => (float)$airpollution_no2,
'o3' => (float)$airpollution_o3,
'so2' => (float)$airpollution_so2,
'pm25' => (float)$airpollution_pm2_5,
'pm10' => (float)$airpollution_pm10,
'nh3' => (float)$airpollution_nh3
];
}
?>