Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.09 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.09 KB

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 \

  3. apt install redis \
    && service redis start

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

  5. Edit settings.h

  6. make \
    && make install

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

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