From 61e3dae708cfbb5724b77fe637f9e4120d78e955 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 12 Oct 2025 21:19:01 +0200 Subject: [PATCH] Update AppImage --- AppImage/scripts/AppRun | 4 ---- AppImage/scripts/flask_server.py | 10 ++++++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/AppImage/scripts/AppRun b/AppImage/scripts/AppRun index eff0d68..399815e 100644 --- a/AppImage/scripts/AppRun +++ b/AppImage/scripts/AppRun @@ -19,8 +19,6 @@ if [[ "$1" == "--translate" ]]; then exec python3 "${APPDIR}/usr/bin/translate_cli.py" "${@:2}" else echo "🚀 Starting ProxMenux Monitor Dashboard..." - echo "📊 Dashboard will be available at: http://localhost:8008" - echo "🔌 API endpoints at: http://localhost:8008/api/" echo "" echo "🔧 Hardware monitoring tools:" @@ -36,8 +34,6 @@ else fi fi - echo "" - echo "Press Ctrl+C to stop the server" echo "" # Start the Flask server diff --git a/AppImage/scripts/flask_server.py b/AppImage/scripts/flask_server.py index 9e1a2fd..16ea34a 100644 --- a/AppImage/scripts/flask_server.py +++ b/AppImage/scripts/flask_server.py @@ -2962,7 +2962,7 @@ def get_hardware_info(): print(f"[v0] Parsed memory size (no unit): {size_str} -> {current_module['size']} KB") except (ValueError, IndexError) as e: print(f"[v0] Error parsing memory size '{size_str}': {e}") - current_module['size'] = 0 + current_module['size'] = 0 # Default to 0 if parsing fails else: current_module['size'] = 0 # Default to 0 if no size or explicitly 'No Module Installed' elif line.startswith('Type:'): @@ -4220,8 +4220,10 @@ def api_vm_control(vmid): return jsonify({'error': str(e)}), 500 if __name__ == '__main__': - print("Starting ProxMenux Flask Server on port 8008...") - print("Server will be accessible on all network interfaces (0.0.0.0:8008)") - print("API endpoints available at: /api/system, /api/system-info, /api/storage, /api/proxmox-storage, /api/network, /api/vms, /api/logs, /api/health, /api/hardware") + # API endpoints available at: /api/system, /api/system-info, /api/storage, /api/proxmox-storage, /api/network, /api/vms, /api/logs, /api/health, /api/hardware + + import logging + log = logging.getLogger('werkzeug') + log.setLevel(logging.ERROR) app.run(host='0.0.0.0', port=8008, debug=False)