Add --debug flag to index.php script, restrict foodsi bot query to get only today packages.
This commit is contained in:
@@ -9,6 +9,10 @@ require_once 'vendor/autoload.php';
|
||||
date_default_timezone_set('Europe/Warsaw');
|
||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
||||
$dotenv->load();
|
||||
$_ENV['DEBUG'] = false;
|
||||
if ($argc === 2 and isset($argv[1]) && $argv[1] === '--debug') {
|
||||
$_ENV['DEBUG'] = true;
|
||||
}
|
||||
$client = new Client();
|
||||
$homeassistant = new HomeassistantService($client);
|
||||
$foodsi = new FoodsiService($client);
|
||||
|
||||
Reference in New Issue
Block a user