coding w/

MPD sima

xkcd#400 Important Life Lesson

work licensed under CC BY-NC 2.5 License
© copyright Randall Munroe

Description

MPD_sima is an non interactive MPD autoqueue client running in the background.
It will queue new tracks chosen among artists similar to your current queued tracks, provided a title is found in your music library.

Similar artists are fetched from last.fm or EchoNest webservice.

This client allows you to never run out of music when your queue is getting short.

Run examples:

# connect to localhost:6600 (or MPD_HOST/MPD_PORT env. var. if set).
mpd-sima
# connect to mpdserver.tld then log to /var/log/mpd-sima.log and daemonize process.
mpd-sima --host mpdserver.tld --log /var/log/mpd-sima.log --daemon

Online documentation

Install

Python

The easiest and the cleanest, is, IMHO, to run a python virtual environment.

A python script is provided to ease the process vinstall.py.
Refer to INSTALL file for instructions.

Packages might be available for your distribution, I'm only aware of Debian and Arch (AUR).

I do also maintain a personal Debian packages repository with MPD_sima.

docker

A docker image might be up to date :

docker pull kaliko/sima
OPTIONS="--volume /path/to/my/music/library/:/music:ro -p 6601:6600 -p 8001:8000"
docker run ${OPTIONS} --detach=true --name sima kaliko/sima

Then run your MPD client on localhost:6601 and the audio stream is available on http://localhost:8001

Code to build your own image is available git.kaliko.me/?p=sima-docker.git.

Download