Code Monkey home page Code Monkey logo

spotify-server's Introduction

Spotify Server

Get your own spotify web-based remote controller and let the whole team (or just you) choose what Spotify is playing in the office speakers, right in the browser!

Have you ever been in an office or to a party where music is playing in the speakers, and there's one self-appointed music-fürher that controls the music? Or perhaps you want to be that fürher yourself, but you can't be assed to go all the way to the machine playing music. Maybe you're just tired of huddling around the computer competing to queue the most tracks.

Spotify Server is the solution to all this, and a variety of other problems. You will no longer have to huddle with your friends around the computer while competing about queuing the most songs. You can secretly manipulate the playlist while you lounge in your very comfortable armchair. You could even put a big screen in the middle of the living room, showing what is currently played.

Current features

  • See what's playing (name, artists, album, duration, player state, player position, and whether shuffling or repeating or not)
  • Play or pause
  • Play a specific track by URI
  • Play a specific track in a specific playlist
  • Play previous/next track
  • Queue tracks
  • Set volume (though currently not allowed in Spotify API) and position
  • All this is a slick user interface

Planned features

  • Vote to change track!
  • Display play queue
  • Vote to change track
  • Vote to order queued tracks
  • Chat with admin or other listeners
  • More fine-grained permissions system

Installation

You must have node.js and npm installed to run this app. You also need Spotify (of course) and the Spotify Slave app installed to be able to actually control Spotify.

  • Clone this repo
    $ git clone git://github.com/ahultgren/Spotify-Server.git
  • Enter the created directory
    $ cd spotify-server
  • Install dependencies
    $ npm install
  • Make sure you have the Spotify Slave app installed
  • Start the server
    $ node web.js

Then try it out by visiting http://localhost:3000

Contribution

Contributions are very much appreciated. If you want to contribute just fork this repo, make your own branch, follow current coding style, change/add one feature per commit, and issue a pull request when you're done. Contributors will be credited below.

License

MIT
Eg. use as you please but don't expect anything and don't remove this notice :) Oh, and I'd be happy if you tell people it's me (Andreas Hultgren) who built this.

spotify-server's People

Stargazers

PONDSCUM PUSSY avatar  avatar Ben Newcomb avatar Angel Mora avatar Anushka Samarasinghe avatar Clement_Garrigues avatar bnclt avatar Alex avatar Thomas van de Wege avatar Balwant Singh avatar fikrihakim avatar Zaki Mughal [sivoais] avatar Konrad Fedorczyk avatar Jordan Howlett avatar  avatar Angus H. avatar Pablo Chiappetti avatar  avatar Dennis Oderwald avatar Laurence Dougal Myers avatar mtorresu avatar Jon Wu avatar  avatar Anton Smith avatar Sam avatar Chris N avatar  avatar George avatar Bob Cao avatar Tim Farley avatar  avatar Adam Ruul avatar Willi#m ⬣ avatar Andrew Landry avatar Roel de Wit avatar Mariano Molina avatar toki avatar Michael Henry avatar Morten Olsen avatar Kevin Wang avatar Robbie Trencheny avatar Jason Demeuse avatar Chin Godawita avatar Andreas Hultgren avatar D. Moraschi avatar Robert Coleman avatar Giovanni Savastano avatar

Watchers

Steven Jones avatar Giovanni Savastano avatar Håkan Nylén avatar James Cloos avatar James Helly avatar Andreas Hultgren avatar Mariano Molina avatar  avatar

spotify-server's Issues

Missing comma

In web.js the port variable isn't proceeded by a comma.

npm install warnings and node web.js error

I get the following warnings when running npm install:

npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/nodefly
npm http 304 https://registry.npmjs.org/nodefly

and the following error when running node web.js:

module.js:340
throw err;
^
Error: Cannot find module './.config'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/Users/*****/Spotify/Spotify-Server/web.js:2:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)

I am unsure if this is a problem with my setup or instruction following or if it is a problem with the code or installation instructions.

Error when connecting Spotify Slave to Server

I got the server working. But when using slave to connect to different server it makes it fall over, throwing the following error:

http.js:691
throw new Error('Can't set headers after they are sent.');

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.