inital commit

This commit is contained in:
2025-09-25 14:36:17 +02:00
parent fdb7ef65f2
commit aee8ec5cb0
14 changed files with 4264 additions and 0 deletions

39
video-player.service Normal file
View File

@@ -0,0 +1,39 @@
[Unit]
Description=Raspberry Pi Video Player with IR Remote Control
Documentation=https://github.com/your-repo/ulivision-tv
After=network.target sound.target graphical-session.target
Wants=graphical-session.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/video_player
ExecStart=/usr/bin/python3 /opt/video_player/video_player.py
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=video-player
# Environment variables
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/pi/.Xauthority
Environment=PYTHONPATH=/opt/video_player
# Security settings
NoNewPrivileges=false
PrivateTmp=false
ProtectSystem=false
ProtectHome=false
# Resource limits
LimitNOFILE=65536
MemoryMax=512M
# GPIO access
SupplementaryGroups=gpio
[Install]
WantedBy=multi-user.target