1.0.3 • Published 8 years ago

open-spotify-remote v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Open Spotify Remote

Code Climate Issue Count

Controle your Spotify app via open.spotify.com

Getting Started

Just install the module and try it out with some exampels :)

Installing

$ npm install open-spotify-remote --save

Example code

var osr = require('open-spotify-remote');

var spotify = new osr();

spotify.connect();

spotify.on('connected', function() {
    // Play one song over and over
    //play(track)
    spotify.play("1LVQ5LsVHxpgnY7VAyLjCR");
    
    // Play a album
    //playlist(user, playlist, track)
    spotify.playlist("spotifydiscover", "67oFw1dAUZhGve2hPv5kgr", "7tJWarixh0rqI31ob9J7Kw");
});

spotify.on('error', function(error) {
    console.log(error);
});

spotify.on('playing', function(play) {
    console.log(play);
});

spotify.on('status', function(status) {
    console.log(status);
});

setInterval(function () {
    spotify.status();
}, 2000);

// Use this to pause or unpause
spotify.pause(true);

Running the tests

No test avalible. :(

TODO

  • Auto connect to different port.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

chrippa

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago