raspberry-pi:music_player
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
raspberry-pi:music_player [2020/11/01 21:14] – Wulf Rajek | raspberry-pi:music_player [2023/05/29 11:55] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
https:// | https:// | ||
+ | ===== Hardware ===== | ||
Pimoroni Pirate Audio Headphone AMP: | Pimoroni Pirate Audio Headphone AMP: | ||
Line 14: | Line 15: | ||
https:// | https:// | ||
- | Pimoroni Pirate Audio Case: | + | Pimoroni Pirate Audio Case with buttons: |
+ | https:// | ||
+ | |||
+ | Pimoroni Pirate Audio Case (link dead): | ||
https:// | https:// | ||
Line 20: | Line 24: | ||
https:// | https:// | ||
- | ===== Software install | + | Angled case: |
+ | https:// | ||
+ | |||
+ | ===== System installation | ||
Download Raspberry OS lite (Buster) | Download Raspberry OS lite (Buster) | ||
Line 28: | Line 35: | ||
Note: / | Note: / | ||
- | |||
WIFI config: | WIFI config: | ||
create wpa_supplicant.conf in /boot | create wpa_supplicant.conf in /boot | ||
- | < | + | < |
ctrl_interface=DIR=/ | ctrl_interface=DIR=/ | ||
update_config=1 | update_config=1 | ||
Line 47: | Line 53: | ||
/ | / | ||
- | < | + | < |
#Set GPU memory to lowest value | #Set GPU memory to lowest value | ||
gpu_mem=16 | gpu_mem=16 | ||
Line 79: | Line 85: | ||
Add the line to / | Add the line to / | ||
+ | Now insert the SD-Card into the Pi and power it up. Then connect to it via SSH. | ||
Security. Default user pi with password raspberry | Security. Default user pi with password raspberry | ||
https:// | https:// | ||
+ | |||
+ | |||
+ | ===== Mopidy Installation ===== | ||
Install git if not already installed: | Install git if not already installed: | ||
Line 94: | Line 104: | ||
#Then install mopidy-iris web interface and Pirate Audio plugins | #Then install mopidy-iris web interface and Pirate Audio plugins | ||
#And create system service to autostart mopidy | #And create system service to autostart mopidy | ||
- | |||
< | < | ||
cd /usr/src | cd /usr/src | ||
Line 102: | Line 111: | ||
</ | </ | ||
- | Alternative | + | Additional |
https:// | https:// | ||
< | < | ||
Line 118: | Line 127: | ||
sudo apt-get purge bluez bluez-firmware | sudo apt-get purge bluez bluez-firmware | ||
sudo apt autoremove | sudo apt autoremove | ||
+ | </ | ||
+ | |||
+ | Install mopidy-local extension backend (local+sqlite combined) to build local index for search and increased performance. | ||
+ | https:// | ||
+ | < | ||
+ | sudo python3 -m pip install Mopidy-Local | ||
</ | </ | ||
#Display will show ip and default mopidy port :6680 for web interface. Iris web client needs to be selected | #Display will show ip and default mopidy port :6680 for web interface. Iris web client needs to be selected | ||
+ | |||
#Edit Mopidy config | #Edit Mopidy config | ||
sudo vi / | sudo vi / | ||
< | < | ||
- | #file section change | + | #disable |
- | media_dirs | + | [file] |
- | / | + | enabled |
- | / | + | |
+ | #enable local with sqlite extension | ||
+ | [local] | ||
+ | enabled = true | ||
+ | media_dir = / | ||
+ | scan_timeout = 5000 | ||
+ | scan_flush_threshold = 50 | ||
+ | album_art_files = | ||
+ | cover.* | ||
+ | folder.* | ||
+ | directories = | ||
+ | Albums | ||
+ | Artists | ||
+ | Composers | ||
+ | Genres | ||
+ | Performers | ||
+ | Release Years | ||
+ | Tracks | ||
+ | Last Week's Updates | ||
+ | Last Month' | ||
+ | timeout = 10 | ||
- | #change | ||
- | metadata_timeout = 5000 | ||
- | #add to http section | + | #add to http section |
enabled = true | enabled = true | ||
#port = 80 #issue with mopidy user and ports <1024 | #port = 80 #issue with mopidy user and ports <1024 | ||
Line 193: | Line 227: | ||
</ | </ | ||
+ | |||
+ | Trigger scan of media directories (when mopidy runs as service): | ||
+ | < | ||
+ | sudo mopidyctl local scan | ||
+ | </ | ||
+ | or when running from terminal as logged in user: | ||
+ | < | ||
+ | mopidy local scan | ||
+ | </ | ||
+ | |||
+ | Note the default configuration files mopidy is looking for are in ~/ | ||
+ | The service file using the mopidy user is: | ||
+ | / | ||
+ | |||
+ | ===== Mopidy MPD ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | < | ||
+ | < | ||
+ | [mpd] | ||
+ | hostname = 0.0.0.0 | ||
+ | </ | ||
===== Edit the volume button' | ===== Edit the volume button' | ||
Default volume button step is 5%. Adding < | Default volume button step is 5%. Adding < | ||
+ | |||
===== Other music player projects ===== | ===== Other music player projects ===== |
raspberry-pi/music_player.1604265254.txt.gz · Last modified: 2023/05/29 11:53 (external edit)