From d57d5ef59156671cc7108a134dd7ed0f35f68c07 Mon Sep 17 00:00:00 2001 From: ScreenTinker Date: Tue, 23 Jun 2026 23:46:02 -0500 Subject: [PATCH] fix(setup): poll /api/status (not /api/health) in the kiosk wait-loop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The server exposes /api/status, not /api/health — so the all-in-one kiosk "wait for server" loop never succeeded and burned the full timeout (~120s) before launching Chromium on every boot. Fixed in the new Debian script and the Raspberry Pi script it was based on. Co-Authored-By: Claude Opus 4.8 (1M context) --- scripts/debian-13-setup.sh | 2 +- scripts/raspberry-pi-setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/debian-13-setup.sh b/scripts/debian-13-setup.sh index 78960db..73d68be 100755 --- a/scripts/debian-13-setup.sh +++ b/scripts/debian-13-setup.sh @@ -297,7 +297,7 @@ fi if echo "\$KIOSK_URL" | grep -q "localhost"; then echo "Waiting for ScreenTinker server..." for i in \$(seq 1 60); do - if curl -sf "http://localhost:${SCREENTINKER_PORT}/api/health" >/dev/null 2>&1; then + if curl -sf "http://localhost:${SCREENTINKER_PORT}/api/status" >/dev/null 2>&1; then echo "Server ready after \${i}x2s" break fi diff --git a/scripts/raspberry-pi-setup.sh b/scripts/raspberry-pi-setup.sh index 07fb234..f7b1baf 100644 --- a/scripts/raspberry-pi-setup.sh +++ b/scripts/raspberry-pi-setup.sh @@ -280,7 +280,7 @@ fi if echo "\$KIOSK_URL" | grep -q "localhost"; then echo "Waiting for ScreenTinker server..." for i in \$(seq 1 30); do - if curl -sf "http://localhost:${SCREENTINKER_PORT}/api/health" >/dev/null 2>&1; then + if curl -sf "http://localhost:${SCREENTINKER_PORT}/api/status" >/dev/null 2>&1; then echo "Server ready" break fi