|
|
vor 3 Tagen | |
|---|---|---|
| data | vor 2 Wochen | |
| src | vor 3 Tagen | |
| .gitignore | vor 2 Wochen | |
| Dockerfile | vor 2 Wochen | |
| README.md | vor 3 Tagen | |
| docker-compose.yml | vor 2 Wochen | |
| package-lock.json | vor 2 Wochen | |
| package.json | vor 2 Wochen |
Tiny background service that:
currently-playingCreate an .env (or export env vars) with:
SPOTIFY_CLIENT_IDSPOTIFY_CLIENT_SECRETSPOTIFY_REFRESH_TOKENOptional:
PORT (default: 9783)POLL_MS (default: 8000)STATE_PATH (default: ./data/last-known.json)npm i
npm start
Endpoints:
GET /last-known -> persisted state JSON, including isPlaying, progressMs, and startedAtMs while active so static clients can animate playback progressGET /healthz -> { ok: true }