Enhance display customization and remove PHP server

Major improvements to display configuration and server architecture:

**Display Enhancements:**
- Add URL parameters for display customization (timestamps, maxlines, fontsize, fontfamily)
- Fix max lines enforcement to prevent scroll bars in OBS
- Apply font family and size settings to both local and sync displays
- Remove auto-scroll, enforce overflow:hidden for clean OBS integration

**Node.js Server:**
- Add timestamps toggle: timestamps=true/false
- Add max lines limit: maxlines=50
- Add font configuration: fontsize=16, fontfamily=Arial
- Update index page with URL parameters documentation
- Improve display URLs in room generation

**Local Web Server:**
- Add max_lines, font_family, font_size configuration
- Respect settings from GUI configuration
- Apply changes immediately without restart

**Architecture:**
- Remove PHP server implementation (Node.js recommended)
- Update all documentation to reference Node.js server
- Update default config URLs to Node.js endpoints
- Clean up 1700+ lines of PHP code

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-27 06:15:55 -08:00
parent e831dadd24
commit 146a8c8beb
16 changed files with 76 additions and 1719 deletions

View File

@@ -273,6 +273,9 @@ class MainWindow(QMainWindow):
port = self.config.get('web_server.port', 8080)
show_timestamps = self.config.get('display.show_timestamps', True)
fade_after_seconds = self.config.get('display.fade_after_seconds', 10)
max_lines = self.config.get('display.max_lines', 50)
font_family = self.config.get('display.font_family', 'Arial')
font_size = self.config.get('display.font_size', 16)
# Try up to 5 ports if the default is in use
ports_to_try = [port] + [port + i for i in range(1, 5)]
@@ -284,7 +287,10 @@ class MainWindow(QMainWindow):
host=host,
port=try_port,
show_timestamps=show_timestamps,
fade_after_seconds=fade_after_seconds
fade_after_seconds=fade_after_seconds,
max_lines=max_lines,
font_family=font_family,
font_size=font_size
)
self.web_server_thread = WebServerThread(self.web_server)
self.web_server_thread.start()
@@ -530,6 +536,9 @@ class MainWindow(QMainWindow):
if self.web_server:
self.web_server.show_timestamps = show_timestamps
self.web_server.fade_after_seconds = self.config.get('display.fade_after_seconds', 10)
self.web_server.max_lines = self.config.get('display.max_lines', 50)
self.web_server.font_family = self.config.get('display.font_family', 'Arial')
self.web_server.font_size = self.config.get('display.font_size', 16)
# Restart server sync if it was running and settings changed
if self.is_transcribing and self.server_sync_client:

View File

@@ -155,7 +155,7 @@ class SettingsDialog(QDialog):
server_layout.addRow("Enable Server Sync:", self.server_enabled_check)
self.server_url_input = QLineEdit()
self.server_url_input.setPlaceholderText("http://example.com/transcription/server.php")
self.server_url_input.setPlaceholderText("http://your-server:3000/api/send")
server_layout.addRow("Server URL:", self.server_url_input)
self.server_room_input = QLineEdit()