fix error in web v2

This commit is contained in:
Chuck
2025-07-27 21:07:17 -05:00
parent 0f6e3c9497
commit 7f17d8cd8f
3 changed files with 29 additions and 0 deletions

View File

@@ -53,6 +53,18 @@ def main():
logger.error(f"Failed to install dependencies: {e}")
return
# Install rgbmatrix module from local source
logger.info("Installing rgbmatrix module...")
try:
rgbmatrix_path = script_dir / 'rpi-rgb-led-matrix-master' / 'bindings' / 'python'
subprocess.check_call([
str(venv_pip), 'install', '-e', str(rgbmatrix_path)
], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
logger.info("rgbmatrix module installed successfully")
except subprocess.CalledProcessError as e:
logger.error(f"Failed to install rgbmatrix module: {e}")
return
# Run the web interface
logger.info("Starting web interface on http://0.0.0.0:5001")
subprocess.run([str(venv_python), 'web_interface_v2.py'])