haussteuerung:display_panel
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| haussteuerung:display_panel [2025/12/27 08:07] – [Motion Detect] dominik | haussteuerung:display_panel [2025/12/27 08:11] (current) – [Service] dominik | ||
|---|---|---|---|
| Line 196: | Line 196: | ||
| * Tests starten ... | * Tests starten ... | ||
| - | ==== Tests ==== | ||
| - | === VL === | ||
| Line 205: | Line 203: | ||
| * Sensor : VL53L0X | * Sensor : VL53L0X | ||
| - | * Service \\ < | + | ==== Service |
| - | pi@SHome-Display-VPN-DNS:/ $ cat lib/ | + | * Aktivieren |
| + | * Log ansehen \\ '' | ||
| + | * '' | ||
| [Unit] | [Unit] | ||
| - | Description=Display Controller | + | Description=Smart Display Controller |
| - | + | # Wir warten, bis das Netzwerk und die Grafikoberfläche da sind | |
| + | After=network-online.target graphical.target | ||
| + | Wants=network-online.target | ||
| [Service] | [Service] | ||
| + | # --- User Context --- | ||
| + | User=pi | ||
| + | Group=pi | ||
| + | |||
| + | # --- Arbeitsverzeichnis --- | ||
| + | # Setzt das Verzeichnis, | ||
| + | WorkingDirectory=/ | ||
| + | |||
| + | # --- Environment --- | ||
| + | # Diese Variablen sind wichtig für DDC/CI oder xrandr Interaktionen | ||
| Environment=DISPLAY=: | Environment=DISPLAY=: | ||
| Environment=XAUTHORITY=/ | Environment=XAUTHORITY=/ | ||
| - | ExecStart=/usr/bin/python /home/pi/DisplayOn/MotionDetect.py | + | # Erzwingt unbuffered Output, damit Logs sofort im Journal erscheinen |
| + | Environment=PYTHONUNBUFFERED=1 | ||
| + | |||
| + | # --- ExecStart: Der Trick für das venv --- | ||
| + | # Statt ' | ||
| + | # PASSE DEN PFAD ZUM VENV AN, falls dein Ordner anders heißt (z.B. .venv)! | ||
| + | ExecStart=/home/ | ||
| + | |||
| + | # --- Restart Verhalten --- | ||
| Restart=always | Restart=always | ||
| - | RestartSec=30s | + | RestartSec=10s |
| - | KillMode=process | + | |
| - | TimeoutSec=infinity | + | |
| - | + | ||
| [Install] | [Install] | ||
| WantedBy=graphical.target | WantedBy=graphical.target | ||
| - | |||
| </ | </ | ||
haussteuerung/display_panel.1766819268.txt.gz · Last modified: by dominik
