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:36] – 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 120: | Line 129: | ||
| </ | </ | ||
| - | Install mopidy-local extension backend (file/local+sqlite combined) to build local index for search and increased performance. | + | Install mopidy-local extension backend (local+sqlite combined) to build local index for search and increased performance. |
| https:// | https:// | ||
| < | < | ||
| Line 127: | Line 136: | ||
| #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 = false |
| - | / | + | |
| + | #enable local with sqlite extension | ||
| [local] | [local] | ||
| + | enabled = true | ||
| media_dir = / | media_dir = / | ||
| scan_timeout = 5000 | scan_timeout = 5000 | ||
| scan_flush_threshold = 50 | 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 | ||
| - | album_art_files = folder.* cover.* | ||
| - | |||
| - | #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 207: | Line 228: | ||
| - | Trigger scan of media directories: | + | Trigger scan of media directories |
| + | < | ||
| + | sudo mopidyctl local scan | ||
| + | </ | ||
| + | or when running from terminal as logged in user: | ||
| < | < | ||
| mopidy local scan | 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 | ||
| </ | </ | ||
raspberry-pi/music_player.1604266560.txt.gz · Last modified: (external edit)