From 1c5831c473d06c98302d4ff12cf7f5edfd2190df Mon Sep 17 00:00:00 2001 From: Striker72rus Date: Wed, 25 Mar 2026 13:54:04 +0300 Subject: [PATCH] - --- wall_panel/config.yaml | 2 +- wall_panel/lib/config.php | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/wall_panel/config.yaml b/wall_panel/config.yaml index 6d464d0..ebc1049 100755 --- a/wall_panel/config.yaml +++ b/wall_panel/config.yaml @@ -1,6 +1,6 @@ name: Wall Panel description: Wall Panel PHP interface as a Home Assistant add-on -version: "1.0.3" +version: "1.0.4" slug: wall_panel url: https://git.striker72rus.ru/PHP/wallpanell.git init: false diff --git a/wall_panel/lib/config.php b/wall_panel/lib/config.php index f8e54f3..c26ac71 100755 --- a/wall_panel/lib/config.php +++ b/wall_panel/lib/config.php @@ -51,6 +51,21 @@ function app_config_path(): string return APP_ROOT . '/config/config.json'; } +function app_runtime_mode(): string +{ + return strtolower(trim((string)getenv('WALL_PANEL_RUNTIME_MODE'))); +} + +function app_addon_options_path(): string +{ + $override = trim((string)getenv('WALL_PANEL_OPTIONS_PATH')); + if ($override !== '') { + return $override; + } + + return '/data/options.json'; +} + function app_storage_path(string $file): string { $override = trim((string)getenv('WALL_PANEL_STORAGE_DIR'));