- Bananapi raspberry M2 or Normal raspberry pi
- 4 Microswitch Buttons
- 4 CD Cases
- Some female cables
- USB Cable + Charger
- Gluegun
-
Image Raspbian
- http://wiki.banana-pi.org/Banana_Pi_BPI-M2%2B#Image_Release
- lgoin/password: pi/bananapi
-
Mopidy Music Deamon
-
Mopidy Python Bindings https://pypi.org/project/python-mpd2/
- pip install python-mpd2
- https://python-mpd2.readthedocs.io/en/latest/topics/commands.html
-
via .desktop Mode
- https://developer-blog.net/raspberry-pi-autostart-von-programmen/
- cp mopidy.desktop /home/pi/.config/autostart
- cp music.desktop /home/pi/.config/autostart
-
or via .bashrc, by adding two lines at the end:
- screen -d -m ./run_mopidy.sh
- sudo python test.py &
- cp test.py /home/pi/test.py
- 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)
- e.g. make subfolders in /home/pi/Music/player
- Make playlists with vlc
- cp to /home/pi/.local/share/mopidy/m3u
- see sample.m3u
- Adjust which playlists should be played when you press a button.
- if gpio_is_pressed(23): load_playlist_and_play("klassik",True)
- test.py will crash if it cannot connect to mopidy