16 lines
569 B
PHP
16 lines
569 B
PHP
<?php
|
|
|
|
use Illuminate\Foundation\Inspiring;
|
|
use Illuminate\Support\Facades\Artisan;
|
|
use Illuminate\Support\Facades\Schedule;
|
|
|
|
Artisan::command('inspire', function () {
|
|
$this->comment(Inspiring::quote());
|
|
})->purpose('Display an inspiring quote');
|
|
|
|
// Presence sweep — "home" immediately on association, "away" after a debounce (in the command).
|
|
Schedule::command('presence:poll')->everyMinute()->withoutOverlapping();
|
|
|
|
// Metrics sample for the charts (MQTT throughput + host CPU/memory).
|
|
Schedule::command('metrics:sample')->everyMinute()->withoutOverlapping();
|