This commit is contained in:
Rainer 2025-04-29 23:36:37 +02:00
commit ce1095bb24
27 changed files with 621 additions and 0 deletions

27
install.sh Normal file
View file

@ -0,0 +1,27 @@
#!/bin/bash
echo "📦 Projekt wird installiert..."
# System aktualisieren
sudo apt update && sudo apt upgrade -y
sudo apt install python3-venv git -y
# Projekt klonen
git clone https://github.com/DEIN_GIT_REPO/pi-race-timer.git /home/pi/pi-race-timer
cd /home/pi/pi-race-timer
# Virtuelle Umgebung einrichten
python3 -m venv venv
source venv/bin/activate
# Python-Abhängigkeiten installieren
pip install -U pip
pip install -r requirements.txt
# systemd-Dienst einrichten
sudo cp pi-race-timer.service /etc/systemd/system/
sudo systemctl daemon-reexec
sudo systemctl enable pi-race-timer
sudo systemctl start pi-race-timer
echo "✅ Installation abgeschlossen. Webinterface erreichbar unter: http://<raspberry-ip>:5000"