forked from ChuckBuilds/LEDMatrix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_web_v2.sh
More file actions
24 lines (17 loc) · 725 Bytes
/
run_web_v2.sh
File metadata and controls
24 lines (17 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# LED Matrix Web Interface V2 Runner
# This script runs the web interface using system Python
set -e
# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
echo "Setting up LED Matrix Web Interface V2..."
# Install dependencies using system Python
echo "Installing dependencies..."
python3 -m pip install --break-system-packages -r requirements_web_v2.txt
# Install rgbmatrix module from local source
echo "Installing rgbmatrix module..."
python3 -m pip install --break-system-packages -e rpi-rgb-led-matrix-master/bindings/python
# Run the web interface
echo "Starting web interface on http://0.0.0.0:5001"
python3 web_interface_v2.py