Update EcowittExportCommand.php
//replace uvi empty values with 0
This commit is contained in:
@@ -125,6 +125,11 @@ class EcowittExportCommand extends Command
|
||||
$this->debug('collecting: uv');
|
||||
$uvi = $this->getData($ecowitt, 'list.so_uv.list.uv');
|
||||
|
||||
//replace empty values with 0
|
||||
foreach ($uvi as $key => $value) {
|
||||
if(empty($value)) $uvi[$key] = "0";
|
||||
}
|
||||
|
||||
// rainrate in mm/hr b
|
||||
$this->debug('collecting: rainrate in mm/hr b');
|
||||
$rainRateH = $this->getData($ecowitt, 'list.rain.list.rainratein');
|
||||
|
||||
Reference in New Issue
Block a user