Skip to content

Commit

Permalink
fixed time output to use setup format
Browse files Browse the repository at this point in the history
  • Loading branch information
brian underdown authored and brian underdown committed Feb 18, 2019
1 parent 6337a7e commit 1d08386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airqualitymodule.php
Expand Up @@ -39,7 +39,7 @@ function map($value, $fromLow, $fromHigh, $toLow, $toHigh){
$aqiweather["aqi"] = number_format(pm25_to_aqi(($parsed_json->{'results'}[0]->{'PM2_5Value'} + $parsed_json->{'results'}[1]->{'PM2_5Value'}) / 2),1);
$aqiweather["aqiozone"] = 'N/A';
$aqiweather["time2"] = $parsed_json->{'results'}[1]->{'LastSeen'};
$aqiweather["time"] = date("H:i:s",$aqiweather["time2"]);
$aqiweather["time"] = date($timeFormat,$aqiweather["time2"]);
$aqiweather["city"] = $parsed_json->{'results'}[0]->{'ID'};
$aqiweather["label"] = $parsed_json->{'results'}[0]->{'Label'};
$a="";if($aqiweather["aqi"]==$a){$aqiweather["aqi"] = "0" ;}
Expand Down

0 comments on commit 1d08386

Please sign in to comment.