Trying to get python bridge to work.

This commit is contained in:
Raphaël Numbus
2026-05-17 14:24:57 +02:00
parent df5132e97a
commit 27a5eca7f8
2 changed files with 18 additions and 11 deletions
+8 -5
View File
@@ -336,11 +336,14 @@ launch_gui() {
python3 "${BRIDGE_SCRIPT}" > /dev/null 2>&1 &
export BRIDGE_PID=$!
xdg-open "http://localhost:${WEBSERVER_PORT}" 2>/dev/null || open "http://localhost:${WEBSERVER_PORT}" 2>/dev/null || true
local START_URL="http://localhost:${WEBSERVER_PORT}/pages/index.html"
xdg-open "${START_URL}" 2>/dev/null || open "${START_URL}" 2>/dev/null || true
sleep 5
echo -e "\n ➡️ If it doesn't automatically, open your browser at: $(gum style --foreground 212 "http://localhost:${WEBSERVER_PORT}")"
echo -e "\n ➡️ If it doesn't automatically, open your browser at: $(gum style --foreground 212 "${START_URL}")"
}
# --- MAIN WEB FUNCTIONS ---<
@@ -711,9 +714,9 @@ securely on a hidden sheet of paper or add it to your password manager (locally
# --- DEFAULT VARIABLES --->
WEBSERVER_PORT=${WEBSERVER_PORT:-8088}
LIVE_DATA_FILE="config/live.yaml"
HW_DATA_FILE="config/hardware.yaml"
CONFIG_FILE="config/numbus.yaml"
LIVE_DATA_FILE="web/config/live.yaml"
HW_DATA_FILE="web/config/hardware.yaml"
CONFIG_FILE="web/config/numbus.yaml"
BRIDGE_SCRIPT="web/logic/interactive.py"