/bananaphone

A board on the wall to play songs via push of a button

Primary LanguagePython

Bananaphone

0. What you will need

  • Bananapi raspberry M2 or Normal raspberry pi
  • 4 Microswitch Buttons
  • 4 CD Cases
  • Some female cables
  • USB Cable + Charger
  • Gluegun

1. Install Stuff

2. Setup Autostart

3. Copy test.py to Home

  • cp test.py /home/pi/test.py

4. Configure raspberry

  • sudo raspi-config
  • set force 3.5mm jack (audio will always be played via jack)
  • enable ssh (so you can login and tweak things without a screen)

5. Copy music over to pi

  • e.g. make subfolders in /home/pi/Music/player

6. Setup Playists

  • Make playlists with vlc
  • cp to /home/pi/.local/share/mopidy/m3u
  • see sample.m3u

7. Adjust test.py

  • Adjust which playlists should be played when you press a button.
  • if gpio_is_pressed(23): load_playlist_and_play("klassik",True)

Known bugs

  • test.py will crash if it cannot connect to mopidy