diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2022-12-27 17:51:44 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2022-12-27 17:51:44 +0100 |
| commit | e15e1c6a4cb4a534d649cfc3d1be68498fddac48 (patch) | |
| tree | 5a7b78b68c8db710d4abdebf7137e2de2ffe5a8a | |
| parent | 2dd235cc125b9f5c57a22729fdaef3187cdcec06 (diff) | |
| download | WRMS-e15e1c6a4cb4a534d649cfc3d1be68498fddac48.tar.gz WRMS-e15e1c6a4cb4a534d649cfc3d1be68498fddac48.zip | |
add content to the README
| -rw-r--r-- | README.md | 67 |
1 files changed, 67 insertions, 0 deletions
@@ -1,5 +1,72 @@ # WRMS - Wireless Remote Media System +WRMS is a service offering a interactive playlist consisting of songs from one +or multiple backends. +A backend in the context of WRMS is anything that can be searched for music and +is able to play individual songs. +Each song in the interactive playlist has a rate, which determines its +position in the playlist. +Songs can be up- or downvoted to change their rate similar to how reddit handles +posts. + +## Compilation + +WRMS is build in go therefore you need a go installation to build WRMS. + +To build WRMS run: `go build` in the repository root. + +## Usage + +To start WRMS and serve clients run `./wrms` + +```Usage of ./wrms: + -backends string + music backend to use (default "dummy youtube spotify") + -loglevel string + log level (default "Warning") + -port int + port to listen to (default 8080) + -serve-music-dir string + local music directory to serve +``` + +When WRMS is running Clients can connect to the computer running WRMS on the +specified port (default 8080). +For example connect to [localhost:8080](htpp://localhost:8080) when you are +running WRMS on your own computer. + +## Requirements + +* mpv + +## Available backends + +The backends WRMS should use can be controlled with the `backends` command line +argument. +The default value is `dummy youtube spotify`. + +### local + +The `local` backend allows WRMS to play songs from a local path. +To serve local songs pass the `-serve-music-dir <path>` flag to WRMS. + +### spotify + +The `spotify` backend requires a spotify premium account to serve songs from +spotify. +The spotify username and password are provided using the environment variables +`WRMS_SPOTIFY_USER` and `WRMS_SPOTIFY_PASSWORD`. + +### youtube + +The `youtube` backend uses youtube-dl to search youtube and in combination with +mpv to play the selected youtube videos. + +### dummy + +The `dummy` backend is only used for debugging and development it can not +actually search for or play songs. + ## LICENSE WRMS is licensed under the terms of the GNU General Public License 3.0. |
