Compare commits
2 Commits
11da69f2b3
...
f0f78aa038
| Author | SHA1 | Date |
|---|---|---|
|
|
f0f78aa038 | |
|
|
23745ee118 |
|
|
@ -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();
|
$start = $latestReportedAt ? $latestReportedAt->copy() : $today->copy()->subDays(179);
|
||||||
|
|
||||||
$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' => rand(8, 10) / 100,
|
'chlorine' => 0.09,
|
||||||
'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