- Created Flask backend with REST API endpoints - Built HTML/CSS/JavaScript frontend - Replaced RGB sliders with color pickers for each palette color - Reorganized layout: color palette on left, patterns on right - Added persistence for color changes - Integrated WebSocket client for lighting controller communication - Added tab management, profile support, and pattern selection
18 lines
410 B
Python
Executable File
18 lines
410 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Startup script for the Flask web application.
|
|
"""
|
|
import sys
|
|
import os
|
|
|
|
# Add src directory to path
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
|
|
|
|
from flask_app import app
|
|
|
|
if __name__ == '__main__':
|
|
print("Starting Lighting Controller Web App...")
|
|
print("Open http://localhost:5000 in your browser")
|
|
app.run(host='0.0.0.0', port=5000, debug=True)
|
|
|