Compare commits
No commits in common. "f0f78aa038ae5f2bb0feddad4e2cb23609299158" and "11da69f2b3c29566251ec64542fdc338f9a33c2b" have entirely different histories.
f0f78aa038
...
11da69f2b3
|
|
@ -55,7 +55,7 @@ class WormStatisticsSyncCommand extends Command
|
||||||
|
|
||||||
$latestReportedAt = WormReport::where('device_id', $device->id)->latest('reported_at')->value('reported_at');
|
$latestReportedAt = WormReport::where('device_id', $device->id)->latest('reported_at')->value('reported_at');
|
||||||
|
|
||||||
$start = $latestReportedAt ? $latestReportedAt->copy() : $today->copy()->subDays(179);
|
$start = $latestReportedAt ? $latestReportedAt->copy() : $today->copy();
|
||||||
|
|
||||||
$days = $start->diffInDays($today, false);
|
$days = $start->diffInDays($today, false);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ class WaterQualityReportCommand extends Command
|
||||||
$data = [
|
$data = [
|
||||||
'conductivity' => rand(560, 565),
|
'conductivity' => rand(560, 565),
|
||||||
'oxygen' => rand(1000, 1100) / 100,
|
'oxygen' => rand(1000, 1100) / 100,
|
||||||
'chlorine' => 0.09,
|
'chlorine' => rand(8, 10) / 100,
|
||||||
'turbidity' => rand(100000, 103000) / 100,
|
'turbidity' => rand(100000, 103000) / 100,
|
||||||
'temp' => null,
|
'temp' => null,
|
||||||
'ph' => rand(750, 760) / 100,
|
'ph' => rand(750, 760) / 100,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue