From 8e0f5453b0c213eddbb3daccf543b353e3377c90 Mon Sep 17 00:00:00 2001 From: amrfti Date: Tue, 9 Dec 2025 21:21:32 -0500 Subject: [PATCH] add ices2 sample config block --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5f384a6..664740a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # icyws A tiny ices2 input module. It does two things: * Runs a WebSocket server on port 8765 that broadcasts the current song as `Artist - Title` -* When run with no arguments, picks a random song from a newline‑separated file list, prints its full path, extracts metadata, and tells the WebSocket server +* When run with no arguments, picks a random song from a newline-separated file list, prints its full path, extracts metadata, and tells the WebSocket server ## Usage @@ -15,11 +15,20 @@ icyws serve --bind :8765 --allow-origin * ICYWS_TRACKLIST=tracks.txt icyws ``` -This prints the selected file path to stdout and broadcasts the now‑playing info. +This prints the selected file path to stdout and broadcasts the now-playing info. ### Track list format A plain text file with one absolute file path per line. +### ices2 config +```xml + + playlist + script + ICYWS_TRACKLIST=/etc/ices2/playlist.txt /usr/local/bin/icyws + +``` + ### WebSocket endpoint Connect to: `/ws/radio` Receives: `Artist - Title` whenever a new song is selected