Skip to content
forked from fredley/play-pi

A Google Play Music frontend for the Raspberry Pi

Notifications You must be signed in to change notification settings

tnarnold/play-pi

This branch is 65 commits behind fredley/play-pi:master.

Repository files navigation

#play-pi

A frontend for a Google Play Music Pi Jukebox. Play-pi will provide a web-frontend that can be used to browse and play your Google Music library.

Screenshot

###Setup/Installation:

  • Not covered in this guide: Setting up ssh/wireless/sound card. These topics are covered in this lifehacker guide.
  • Assuming you've got the Pi set up as you want, you'll need to install the required tools: sudo apt-get install mpd mpc python-mpd python-pip screen
  • Test that mpc is working by entering the command sudo mpc. You should see output like volume: 80% repeat: off random: off single: off consume: off There are futher instructions for setting up/testing mpc if you want them.
  • Next you'll need to use pip to install Django and gmusicapi (from git, as the packaged release is broken): sudo pip install django sudo pip install git+git://github.com/simon-weber/Unofficial-Google-Music-API.git@develop
  • Now clone this repository: git clone git://github.com/fredley/play-pi.git cd play-pi
  • Create a file called local_settings.py in the same folder as settings.py. Add the following lines: GPLAY_USER="[email protected]" GPLAY_PASS="your-password" It's highly recommended you use an application specific password for this.
  • Now set up the Django app with the following commands. This will create the database: ./manage.py syncdb During this step you will be asked for a superuser name and password. You can use these to access the admin should you want to.
  • Now sync your Google Music library. This can take a very long time, just let it run: ./manage.py init_gplay
  • You're now ready to roll! Start up a screen by typing screen. Running the server in the screen means that it will keep running after ssh is disconnected. You need to use sudo for this command if you want to use port 80 (recommended). sudo ./manage.py runserver 0.0.0.0:80
  • You should now be able to access play-pi from your web browser, point it at the IP of your Pi. You can go to http://192.168.pi.ip/admin and log in with your credentials to access the admin.
  • Setting up a better web server is left as an excercise for the enthusiast. I can personally recommend gunicorn.

About

A Google Play Music frontend for the Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published