Arrs page overhaul: big stats, disk bars, queue badges, health strips, settings card

This commit is contained in:
Gmer4Lfe
2026-06-03 17:55:04 -04:00
parent 7d8499686a
commit 6104cde755
2 changed files with 384 additions and 165 deletions
+20 -1
View File
@@ -7,4 +7,23 @@ if ($_vv_cached !== null) { echo json_encode($_vv_cached); exit; }
unset($_vv_cached);
require_once dirname(__DIR__) . '/include/arrs.php';
echo json_encode(vv_arrs_all());
$data = vv_arrs_all();
$vars = vv_conf_vars();
$myHost = vv_detect_host();
$myId = strtoupper($myHost);
$data['settings'] = [
'arr_sync_enabled' => ($vars['ARR_SYNC_ENABLED'] ?? 'true') !== 'false',
'sonarr_recovery' => ($vars[$myId . '_SONARR_RECOVERY'] ?? 'true') !== 'false',
'radarr_recovery' => ($vars[$myId . '_RADARR_RECOVERY'] ?? 'true') !== 'false',
'lidarr_recovery' => ($vars[$myId . '_LIDARR_RECOVERY'] ?? 'true') !== 'false',
'recovery_age_hours' => (int)($vars['ARR_IMPORT_RECOVERY_AGE'] ?? 6),
'sonarr_port' => (int)($vars['ARR_SYNC_SONARR_PORT'] ?? 8989),
'radarr_port' => (int)($vars['ARR_SYNC_RADARR_PORT'] ?? 7878),
'lidarr_port' => (int)($vars['ARR_SYNC_LIDARR_PORT'] ?? 8686),
'my_host' => $myHost,
'my_id' => $myId,
];
echo json_encode($data);