Giter Site home page Giter Site logo

play-pi's Introduction

#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-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 the required python packages: sudo pip install -r requirements.txt
  • 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"
    DEVICE_ID="your-device-id
    To get your device ID, dial *#*#8255#*#* on your Android phone, or have a look on the App Store - there are many apps that will display it for you. iOS users can use their device's uuid prepended by ios:. 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.

play-pi's People

Contributors

fredley avatar jhbruhn avatar mherwig avatar stetro avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.