sphero-node-music

Control Spotify with your Sphero and Node.


Keywords
node, sphero, nodebot
License
MIT
Install
npm install sphero-node-music@1.0.0

Documentation

Sphero Node Music

Control Spotify with your Sphero and Node.

Play a new song from a Spotify URI when Sphero is tapped or collides with something in "randomRoll" mode. Sphero changes colors to match logged output with each song change.


Getting Started

  1. Install Node / npm.
  2. npm install -g spotify-cli.
  3. npm install.
  4. Open Spotify - Spotify must be open in the background for this app to work.
  5. Turn on your Speakers.
  6. Customize config.js.
  7. Connect your Sphero via Bluetooth.
  8. Double tap your Sphero to wake it up - it should be flashing colors.
  9. node app.js.

Having problems?

  1. This has only been tested on Macs. Feel free to submit a pull request if/where changes are needed for other platforms.
  2. You might have to run the app more than once or double click Sphero in your Bluetooth options because the Sphero doesn't always connect (bluetooth issues). It also doesn't always set up collision detection correctly the first time.

Using cylon.js. Check out the Cylon.js API and examples for more info.