diff --git a/README.md b/README.md index b40dd82..9c3ebaa 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ ## TRMNL BYOS (PHP/Laravel) +[![tests](https://github.com/usetrmnl/byos_laravel/actions/workflows/test.yml/badge.svg)](https://github.com/usetrmnl/byos_laravel/actions/workflows/test.yml) + Laravel Trmnl Server is a self-hostable implementation of a TRMNL server, built with Laravel. It enables you to manage TRMNL devices, generate screens dynamically, and can act as a proxy for the TRMNL API (native plugin system). Inspired by [usetrmnl/byos_sinatra](https://github.com/usetrmnl/byos_sinatra). @@ -236,7 +238,7 @@ Here are some features and improvements that are open for contribution: - Provide Web UI controls to enable/disable plugins. ##### 📦 Visual Studio Code Devcontainer -* Add a .devcontainer to this repo for easier development with Docker. +* ~~Add a .devcontainer to this repo for easier development with Docker.~~ ✅ ##### Improve Code Coverage @@ -259,7 +261,7 @@ Contributions are welcome! If you’d like to improve the project, follow these - Push your branch and create a PR. - Provide a clear description of your changes. -🚀 Thank you for contributing! Every contribution helps improve the project. +Thank you for contributing! ### License MIT diff --git a/config/services.php b/config/services.php index 1706b99..3df6254 100644 --- a/config/services.php +++ b/config/services.php @@ -38,6 +38,7 @@ return [ 'trmnl' => [ 'proxy_base_url' => env('TRMNL_PROXY_BASE_URL', 'https://trmnl.app'), 'proxy_refresh_minutes' => env('TRMNL_PROXY_REFRESH_MINUTES', 15), + 'proxy_refresh_cron' => env('TRMNL_PROXY_REFRESH_CRON'), 'override_orig_icon' => env('TRMNL_OVERRIDE_ORIG_ICON', false), ], diff --git a/routes/console.php b/routes/console.php index d5cb361..e125176 100644 --- a/routes/console.php +++ b/routes/console.php @@ -2,4 +2,7 @@ use App\Jobs\FetchProxyCloudResponses; -Schedule::job(FetchProxyCloudResponses::class, [])->cron(sprintf('*/%s * * * *', intval(config('services.trmnl.proxy_refresh_minutes', 15)))); +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))) +);