-
Minimal set of controls: GPIO buttons to choose genre of song, plus optional pause button
-
popular_mode
constant in settings.h selects one of the following modes:
- 0: Random
- 1: The more often the user listens to the song, the more often it is played
order_instead_of_shuffle
constant selects a submode ofpopular_mode=0
:
- 0: Shuffle
- 1: Alphabetically order
-
Make a hardware. Each button will choose a genre, plus an optional button for pause (see settings.h).
-
apt install \
libhiredis-dev \
librhash-dev \
libmpv-dev \
libgpiod-dev \ -
apt install redis \
&& service redis start -
git clone https://github.com/sagb/zenplay.git \
&& cd zenplay -
Edit settings.h
-
make \
&& make install -
zenindex (index all songs once)
-or-
zenindex [-p] dir1 dir2 ...
-p: purge redis tables before index -
zenplay (play random file and learn listen duration)
-or-
zenplay file1 file2 ... (debug mode, database not used)