mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
16 lines
611 B
PHP
16 lines
611 B
PHP
<?php
|
|
|
|
use App\Jobs\CleanupDeviceLogsJob;
|
|
use App\Jobs\FetchProxyCloudResponses;
|
|
use App\Jobs\FirmwarePollJob;
|
|
use App\Jobs\NotifyDeviceBatteryLowJob;
|
|
use Illuminate\Support\Facades\Schedule;
|
|
|
|
Schedule::job(FetchProxyCloudResponses::class, [])->cron(
|
|
config('services.trmnl.proxy_refresh_cron') ? config('services.trmnl.proxy_refresh_cron') :
|
|
sprintf('*/%s * * * *', (int) (config('services.trmnl.proxy_refresh_minutes', 15)))
|
|
);
|
|
|
|
Schedule::job(FirmwarePollJob::class)->daily();
|
|
Schedule::job(CleanupDeviceLogsJob::class)->daily();
|
|
Schedule::job(NotifyDeviceBatteryLowJob::class)->dailyAt('10:00');
|