Fix
parent
9b6581cdce
commit
b18925675c
|
|
@ -246,7 +246,10 @@ class DeviceController extends Controller
|
|||
}
|
||||
for ($i = 5; $i >= 0; $i--) {
|
||||
$_key = now()->subHours($i)->format('Y-m-d H').':00:00';
|
||||
$data[$device->monitoring_point][$_key] = null;
|
||||
|
||||
$data[$device->monitoring_point][$_key] = $_dataList[$_key][$deviceColumn] ?? null;
|
||||
|
||||
if ($device->supplier_key === 'device-supplier-linkos') {
|
||||
if (isset($_dataList[$_key])) {
|
||||
if($deviceColumn == 'ph'){
|
||||
$data[$device->monitoring_point][$_key] = 7.49;
|
||||
|
|
@ -281,6 +284,7 @@ class DeviceController extends Controller
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue