Add StreamElements tips and a Feishin now-playing helper (disabled)

- src/streamelements.js: StreamElements Astro websocket, channel.tips with SE_JWT.
  Only allowed + successful tips alert, deduped by id, follows reconnect tokens.
  Off unless SE_JWT is set.
- tools/nowplaying/: PC helper that reads Feishin over MPRIS and posts title,
  artist and a small cover thumbnail to /nowplaying (Bearer NOWPLAYING_KEY). The
  cover is fetched on the LAN so the Navidrome token never leaves the PC.
  Endpoint and overlay widget are kept but switched off for now.
- .env.example: SE_JWT, NOWPLAYING_KEY.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-11-20 23:18:15 +02:00
parent 553cc35b9e
commit b28e56f991
6 changed files with 253 additions and 0 deletions

View file

@ -10,3 +10,9 @@ SECRET_KEY=change_this_to_a_random_string
APP_BASE_URL=https://overlay.example.com
DB_PATH=./heystreamer.db
PORT=3000
# StreamElements tips (optional): dashboard -> avatar -> channel -> JWT token. Keep it secret.
SE_JWT=
# Now playing (Feishin) helper: long random secret shared with tools/nowplaying (e.g. `openssl rand -hex 32`).
NOWPLAYING_KEY=