byos_laravel/routes/console.php
Benjamin Nussbaum 733f307072 feat(#17): add commands and jobs to poll, download and update firmware
feat(#17): add commands and jobs to poll, download and update firmware

feat(#17): update firmware modal

feat(#17): add tests
2025-05-30 14:53:14 +02:00

11 lines
375 B
PHP

<?php
use App\Jobs\FetchProxyCloudResponses;
use App\Jobs\FirmwarePollJob;
Schedule::job(FetchProxyCloudResponses::class, [])->cron(
config('services.trmnl.proxy_refresh_cron') ? config('services.trmnl.proxy_refresh_cron') :
sprintf('*/%s * * * *', intval(config('services.trmnl.proxy_refresh_minutes', 15)))
);
Schedule::job(FirmwarePollJob::class)->daily();