Skip to content

Instantly share code, notes, and snippets.

@marians
Last active October 30, 2019 22:33
Show Gist options
  • Save marians/95997ae0d83eef688ed9ff5c9cf44b6b to your computer and use it in GitHub Desktop.
Save marians/95997ae0d83eef688ed9ff5c9cf44b6b to your computer and use it in GitHub Desktop.
Phoniebox installation log

Phoniebox Installation

How I tried installing Phoniebox in a RPi 3 Model B from a Mac.

1. Download Raspbian Buster Lite

from https://www.raspberrypi.org/downloads/raspbian/ , using the ZIP download link.

2. Flash an SD card

  1. Download Etcher
  2. Install to Applications
  3. Run as root via sudo /Applications/balenaEtcher.app/Contents/MacOS/balenaEtcher
  4. Select ZIP, card, hit Start
  5. Take out SD card, put it back in

3. Modify Wifi settings

  1. Open SD card partition "boot"
  2. Create file ssh
  3. Create file wpa_supplicant.conf as described in https://github.com/raspberrypi/documentation/blob/master/configuration/wireless/headless.md

4. Boot the Raspi

  1. Insert the card
  2. Plug in the card reader
  3. Plug in the USB audio device (optional)
  4. Plugin monitor and keyboard (optional)

5. Connect via SSH

  1. Find IP address via router admin UI
  2. Connect: ssh pi@<ip-address>
  3. Create .ssh/authorized_keys and add own public RSA key
  4. Change password for pi user using passwd

7. Get sound device info

Execute amixer scontrols

For a PCM audio device, the output might look like this:

Simple mixer control 'PCM',0

Use this info in the next step.

6. Start Phoniebox install script

From https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/INSTALL-stretch#one-line-install-command

rm buster-install-*
wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/master/scripts/installscripts/buster-install-default.sh
chmod +x buster-install-default.sh
./buster-install-default.sh

Follow the interactive prompt.

If you are connected via Wifi already, skip the Wifi setup.

7. Connect to the web UI

  1. Use ifconfig | grep inet to find the Raspi's IP address.
  2. In a browser, connect to http://<ip-address>/ to open the Phoniebox web UI.

8. Upload music

  1. Have some MP3 files ready
  2. Go to "Folders & Files" to upload music files into new folders

9. Test audio playback

  1. Go to "Home" in the web UI
  2. Hit the play button next to a music folder.

The UI should indicate that music is playing. You should hhear music.

In my case, neither of those happened.

Troubleshooting: https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/Troubleshooting-FAQ#audio-is-not-working - not too helpful, as all settings seem to be right.

Installing omxplayer. Playing mp3 via omxplayer <path-to-mp3> is working fine.

Maybe it's mpd? systemctl list-units|grep mpd shows it's running.

Running mpc update fixed it.

10. Register RFID cards / chips

  1. Go to "Card ID" in the web UI
  2. Swipe an RFID card or chip. The ID should appear in the form.

In my case, the card ID does not appear.

I run ~/RPi-Jukebox-RFID/scripts/RegisterDevice.py again. And I reboot. Then it works.

11. Set RFID controls

As described in https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/MANUAL#phoniebox-controls-using-rfid-cards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment