Code Monkey home page Code Monkey logo

aoede's Introduction


A Spotify player/remote controller build for cheap, with a raspberry pi

screenshot


Hardware

Obviously you can use other things, because 99% of this is software, but here are the things I used.

I left links for bulk stuff, obviously buy them as you see fit.


Software setup

I use ScalaFX, ScalaFXML and Undertow for the app, big thanks to the maintainers. You will only need a Java8 (and up) runtime.

  • Register a Spotify account
  • Pay for premium :)))
  • Go to the developer dashboard
  • Create an app
  • Plug client-id and client-secret into your application.properties file
  • Add a redirect URL in the dashboard, and plug it into the file. If you want automated setup, leave local-server on true and use http://localhost:9001/ (it's over 9k), but you have no idea if my code is stealing your credentials (it's not). You can also use http://144.202.12.141:9005 but I can't guarantee that I won't forget to pay Vultr for the VPS. Alternatively, pip install flask && python app.py to run a local server.

I recommend you do these steps on your computer, and just copy over the config later. If you use the automated setup, you will be prompted to log in to your account in the browser of your choice, i recommend setting it up on your pi with a keyboard at least once (or use VNC).


  • Install headless raspbian on your sd card (you don't need any of the extra software)
  • Add the networks you will use to the wpa-supplicant.conf file
  • Enable SSH
  • Detailed tutorial for previous steps
  • ssh into your pi (ssh [email protected]) password: pi
  • I will add a setup script later
  • Get your application.properties file near the .jar file on the pi (cat application.properties.template | nc termbin.com 9999 | xclip -i then curl *middle click* > application.properties)
  • Add java -jar spotify.jar to startup

aoede's People

Contributors

razorsh4rk avatar

Stargazers

AJ 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.