Trying to get python bridge to work.
This commit is contained in:
+8
-5
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user