Update AppImage

This commit is contained in:
MacRimi
2025-10-12 21:19:01 +02:00
parent 94d46299d0
commit 61e3dae708
2 changed files with 6 additions and 8 deletions

View File

@@ -19,8 +19,6 @@ if [[ "$1" == "--translate" ]]; then
exec python3 "${APPDIR}/usr/bin/translate_cli.py" "${@:2}" exec python3 "${APPDIR}/usr/bin/translate_cli.py" "${@:2}"
else else
echo "🚀 Starting ProxMenux Monitor Dashboard..." echo "🚀 Starting ProxMenux Monitor Dashboard..."
echo "📊 Dashboard will be available at: http://localhost:8008"
echo "🔌 API endpoints at: http://localhost:8008/api/"
echo "" echo ""
echo "🔧 Hardware monitoring tools:" echo "🔧 Hardware monitoring tools:"
@@ -36,8 +34,6 @@ else
fi fi
fi fi
echo ""
echo "Press Ctrl+C to stop the server"
echo "" echo ""
# Start the Flask server # Start the Flask server

View File

@@ -2962,7 +2962,7 @@ def get_hardware_info():
print(f"[v0] Parsed memory size (no unit): {size_str} -> {current_module['size']} KB") print(f"[v0] Parsed memory size (no unit): {size_str} -> {current_module['size']} KB")
except (ValueError, IndexError) as e: except (ValueError, IndexError) as e:
print(f"[v0] Error parsing memory size '{size_str}': {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: else:
current_module['size'] = 0 # Default to 0 if no size or explicitly 'No Module Installed' current_module['size'] = 0 # Default to 0 if no size or explicitly 'No Module Installed'
elif line.startswith('Type:'): elif line.startswith('Type:'):
@@ -4220,8 +4220,10 @@ def api_vm_control(vmid):
return jsonify({'error': str(e)}), 500 return jsonify({'error': str(e)}), 500
if __name__ == '__main__': if __name__ == '__main__':
print("Starting ProxMenux Flask Server on port 8008...") # API endpoints available at: /api/system, /api/system-info, /api/storage, /api/proxmox-storage, /api/network, /api/vms, /api/logs, /api/health, /api/hardware
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") import logging
log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)
app.run(host='0.0.0.0', port=8008, debug=False) app.run(host='0.0.0.0', port=8008, debug=False)