From c1fad3bd3779e7bbd16f0ce18876960284557fa8 Mon Sep 17 00:00:00 2001 From: Anto01 Date: Sat, 15 Nov 2025 13:41:21 -0500 Subject: [PATCH] fix: Change dashboard port from 5000 to 8080 to avoid Siemens conflict - Update Flask server to run on port 8080 instead of 5000 - Update frontend API_BASE URL to http://localhost:8080/api - Update launcher script to open browser at port 8080 - Update README documentation with new port number This resolves the port conflict with Siemens documentation server. --- dashboard/README.md | 4 ++-- dashboard/api/app.py | 6 +++--- dashboard/frontend/app.js | 2 +- dashboard/start_dashboard.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dashboard/README.md b/dashboard/README.md index 845c309c..fe4f8134 100644 --- a/dashboard/README.md +++ b/dashboard/README.md @@ -41,7 +41,7 @@ python api/app.py 3. Open your browser to: ``` -http://localhost:5000 +http://localhost:8080 ``` ## Quick Start @@ -58,7 +58,7 @@ cd dashboard python api/app.py ``` -The dashboard will automatically open in your default browser at `http://localhost:5000` +The dashboard will automatically open in your default browser at `http://localhost:8080` ## Usage diff --git a/dashboard/api/app.py b/dashboard/api/app.py index 4d245bf4..d411395e 100644 --- a/dashboard/api/app.py +++ b/dashboard/api/app.py @@ -457,7 +457,7 @@ if __name__ == '__main__': print("="*60) print("ATOMIZER DASHBOARD API") print("="*60) - print("Starting Flask server on http://localhost:5000") - print("Access the dashboard at: http://localhost:5000") + print("Starting Flask server on http://localhost:8080") + print("Access the dashboard at: http://localhost:8080") print("="*60) - app.run(debug=True, host='0.0.0.0', port=5000, threaded=True) + app.run(debug=True, host='0.0.0.0', port=8080, threaded=True) diff --git a/dashboard/frontend/app.js b/dashboard/frontend/app.js index 83e28d9f..ac8a6702 100644 --- a/dashboard/frontend/app.js +++ b/dashboard/frontend/app.js @@ -1,6 +1,6 @@ // Atomizer Dashboard - Frontend JavaScript -const API_BASE = 'http://localhost:5000/api'; +const API_BASE = 'http://localhost:8080/api'; let currentStudy = null; let charts = { progress: null, diff --git a/dashboard/start_dashboard.py b/dashboard/start_dashboard.py index c143143b..83e54a39 100644 --- a/dashboard/start_dashboard.py +++ b/dashboard/start_dashboard.py @@ -18,7 +18,7 @@ def main(): print("ATOMIZER DASHBOARD LAUNCHER") print("="*60) print(f"\nStarting dashboard server...") - print(f"Dashboard will open at: http://localhost:5000") + print(f"Dashboard will open at: http://localhost:8080") print("\nPress Ctrl+C to stop the server") print("="*60) @@ -28,7 +28,7 @@ def main(): # Open browser after a short delay def open_browser(): time.sleep(3) # Wait for server to start - webbrowser.open('http://localhost:5000') + webbrowser.open('http://localhost:8080') import threading browser_thread = threading.Thread(target=open_browser, daemon=True)