Skip to content

sagb/zenplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Very minimal car player for Raspberry Pi

  1. Minimal set of controls: GPIO buttons to choose genre of song, plus optional pause button

  2. 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
  1. order_instead_of_shuffle constant selects a submode of popular_mode=0:
  • 0: Shuffle
  • 1: Alphabetically order

Install

  1. Make a hardware. Each button will choose a genre, plus an optional button for pause (see settings.h).

  2. apt install \
    libhiredis-dev \
    librhash-dev \
    libmpv-dev \
    libgpiod-dev

In Debian 13 Trixie, libgpiod is broken. Fix:

sudo apt purge libgpiod\*
sudo apt install build-essential automake autoconf-archive libtool
git clone https://github.com/brgl/libgpiod.git
cd libgpiod
git checkout v1.6.x
autoreconf -vi
./configure --enable-tools=yes --enable-bindings-cxx
make
sudo make install
  1. apt install redis \
    && service redis start

  2. git clone https://github.com/sagb/zenplay.git \
    && cd zenplay

  3. Edit settings.h

  4. make \
    && make install

  5. zenindex (index all songs once)
    -or-
    zenindex [-p] dir1 dir2 ...
    -p: purge redis tables before index

  6. zenplay (play random file and learn listen duration)
    -or-
    zenplay file1 file2 ... (debug mode, database not used)

About

Very minimal car player for Raspberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published