Socket
Book a DemoInstallSign in
Socket

spotify_http_remote

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotify_http_remote

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

SpotifyHttpRemote

HTTP API for sending basic playback commands to a spotify client running on OSX.

Installation

Add this line to your application's Gemfile:

gem 'spotify_http_remote'

And then execute:

$ bundle

Or install it yourself as:

$ gem install spotify_http_remote

Usage

Start server:

$ spotify_http_remote <port> - Default port is 8080

In development mode 'localhost' is the default hostname.

Switch to production mode and start sending commands from other devices on the network by setting RACK_ENV variable to 'production':

$ export RACK_ENV=production

To allow devices from outside your network to send requests to the client, the router needs to be configured to forward traffic to the client's local IP.

HTTP routes

Start playback: <your-domain>:<port>/play

Start playing The Beatles: <your-domain>:<port>/play?artist=beatles

Start playing Drive My Car by The Beatles: <your-domain>:<port>/play?artist=beatles&track=drive%20my%20car

Start playing the album Help: <your-domain>:<port>/play?album=Help!

Stop playback: <your-domain>:<port>/stop

Next track: <your-domain>:<port>/next

Previous track: <your-domain>:<port>/previous

FAQs

Package last updated on 22 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.