This commit is contained in:
Striker72rus 2026-03-25 13:54:04 +03:00
parent ef4858df50
commit 1c5831c473
2 changed files with 16 additions and 1 deletions

View File

@ -1,6 +1,6 @@
name: Wall Panel name: Wall Panel
description: Wall Panel PHP interface as a Home Assistant add-on description: Wall Panel PHP interface as a Home Assistant add-on
version: "1.0.3" version: "1.0.4"
slug: wall_panel slug: wall_panel
url: https://git.striker72rus.ru/PHP/wallpanell.git url: https://git.striker72rus.ru/PHP/wallpanell.git
init: false init: false

View File

@ -51,6 +51,21 @@ function app_config_path(): string
return APP_ROOT . '/config/config.json'; 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 function app_storage_path(string $file): string
{ {
$override = trim((string)getenv('WALL_PANEL_STORAGE_DIR')); $override = trim((string)getenv('WALL_PANEL_STORAGE_DIR'));