Skip to content
/ MBox Public

Setting up a toniebox like audio playback device

Notifications You must be signed in to change notification settings

OSchwark/MBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

MBox

Setting up a toniebox like audio playback device

  1. Install raspberry pi OS on SD card using raspberry pi imager (https://www.raspberrypi.org/software/)
  2. create ssh file on SD card to enable ssh
  3. boot sd card in raspberry pi
  4. Ssh into it
  5. Switch python version(*): sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
  6. Add mopidy gpg key wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add -
  7. sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/buster.list
  8. Install python3-spotify
sudo apt-get update
sudo apt-get install python3-spotify
  1. Find api key https://github.com/search?q=spotify-appkey
  2. install pyalsaaudio pip install pyalsaaudio
  3. if you have installed the full raspbian you might want to get rid of the screen reader install instruction audio file playing every 30s:
    1. ps -eaf | grep wiz and then kill the process piwiz
    2. sudo rm /etc/xdg/autostart/piwiz.desktop
  4. copy files
  5. copy service file to root sudo cp myscript.service /etc/systemd/system/myscript.service
  6. reload services sudo systemctl daemon-reload
  7. enable service sudo systemctl enable myscript.service

*(undo with sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 10

About

Setting up a toniebox like audio playback device

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages