Raspberry Pi 4 appliance that boots as a WiFi access point and serves a phone-controlled web app for browsing /localmedia and driving video playback out the Pi's HDMI port. - NetworkManager-based AP setup (documented in README) - Flask app + vanilla HTML/JS single-page UI (Control / Playback modes) - mpv persistent daemon (DRM/KMS HDMI output) controlled over JSON IPC - long-lived session-cookie auth - "keep playing" folder auto-advance, including when started mid-folder - systemd units for both mpv and the app, autostart on boot Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
15 lines
312 B
Desktop File
15 lines
312 B
Desktop File
[Unit]
|
|
Description=MediaPi Flask app
|
|
After=network-online.target mediapi-mpv.service
|
|
Wants=network-online.target mediapi-mpv.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=jm
|
|
WorkingDirectory=/home/jm/mediapi
|
|
ExecStart=/home/jm/.local/bin/uv run run.py
|
|
Restart=on-failure
|
|
RestartSec=2
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|