- After Kodi starts, set audiooutput.audiodevice to the HDMI sink via JSON-RPC (Kodi otherwise defaults to the analog jack). Waits for the web server, is overridable via MEDIAPI_KODI_AUDIO_DEVICE. - mkdir the configured MEDIAPI_MEDIA_ROOTS so browsing works and there's a spot to copy content into. Verified live on the Pi: playback + HDMI audio work end to end via the app's Player.Open path. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
37 lines
1.4 KiB
Text
37 lines
1.4 KiB
Text
# Copy this file to .env and fill in real values.
|
|
# .env is gitignored -- never commit real secrets.
|
|
# Values must be simple (no spaces / shell-special chars) -- this file is both
|
|
# parsed by the app and sourced by deploy.sh.
|
|
|
|
# --- App login (custom login form) ---
|
|
MEDIAPI_USERNAME=changeme
|
|
MEDIAPI_PASSWORD=changeme
|
|
|
|
# --- Media ---
|
|
# colon-separated list of directories to browse
|
|
MEDIAPI_MEDIA_ROOTS=/localmedia
|
|
MEDIAPI_PORT=8080
|
|
|
|
# --- Kodi (the actual player) ---
|
|
# mediapi drives Kodi over its JSON-RPC HTTP endpoint. install.sh installs Kodi,
|
|
# starts it on KMS, and enables its web server with these credentials/port.
|
|
# Keep the port different from MEDIAPI_PORT above.
|
|
MEDIAPI_KODI_HOST=127.0.0.1
|
|
MEDIAPI_KODI_PORT=8090
|
|
MEDIAPI_KODI_USER=kodi
|
|
MEDIAPI_KODI_PASSWORD=changeme
|
|
# Kodi audio output. Default routes to the Pi's first HDMI port (Kodi otherwise
|
|
# picks the analog jack). Override for the 2nd HDMI port (vc4hdmi1) if needed.
|
|
#MEDIAPI_KODI_AUDIO_DEVICE=ALSA:hdmi:CARD=vc4hdmi0,DEV=0|vc4-hdmi-0
|
|
|
|
# --- System: the Linux user the systemd services run as ---
|
|
# Auto-detected from whoever runs install.sh (id -un) when left unset, so you
|
|
# normally don't need this. Uncomment only to force a specific user.
|
|
#MEDIAPI_USER=pi
|
|
|
|
# --- WiFi access point (re-applied by install.sh) ---
|
|
MEDIAPI_WIFI_COUNTRY=US
|
|
MEDIAPI_AP_SSID=changeme
|
|
MEDIAPI_AP_PASSWORD=changeme
|
|
MEDIAPI_AP_CONN_NAME=mediapi-ap
|
|
|