diff --git a/app/Commands/EcowittExportCommand.php b/app/Commands/EcowittExportCommand.php index 609ffd0..2122106 100644 --- a/app/Commands/EcowittExportCommand.php +++ b/app/Commands/EcowittExportCommand.php @@ -124,6 +124,11 @@ class EcowittExportCommand extends Command // uv $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');