Sign inSign up

jasonacox/tinysonos

By jasonacox

Updated 10 months ago

Image
0

3.1K

jasonacox/tinysonos repository overview

TinySonos

Simple web service to control Sonos speakers and play files from your local computer.

Setup

Edit these two variables in server.py or set in environment before running service:

  • MEDIAPATH - Root folder for all Media files
  • DROPPREFIX - Drop this URL prefix from any playlist or file selected.

Playlists are defined using the m3u / m3u8 format (file extension). This format is used by Plex, iTunes, VLC Media Player, Windows Media Player, and many others. For TinySonos to find these, playlist files (*.m3u or *.m3u8) need to be in the MEDIAPATH root.

Run

Run the Server as a Docker Container listening on port 8001 and 54000. Make sure you update the media path, MEDIAPATH and DROPPREFIX below to match your setup.

docker run \
-d \
-p 8001:8001 \
-p 54000:54000 \
-e MEDIAPATH='/media' \
-e DROPPREFIX='/media' \
-v /Volumes/Plex:/media:ro \
--name tinysonos \
--user ${UID} \
--restart unless-stopped \
jasonacox/tinysonos

The services will auto-discover your Sonos system and will attach to the first zone it finds.

TinySonos Control Panel: http://localhost:8001/

Credits

Tag summary

Content type

Image

Digest

sha256:be243a1db

Size

52.1 MB

Last updated

10 months ago

docker pull jasonacox/tinysonos