Add --debug flag to index.php script, restrict foodsi bot query to get only today packages.
This commit is contained in:
1 parent
13028af1db
commit
a98934dfad
3 files changed
+30
-3
No files matched your search
@@ -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