Skip to content
/ spocon Public

Dead simple Spotify playback controller from cli (Prototype)

License

Notifications You must be signed in to change notification settings

justym/spocon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spocon

Dead simply spotify cli controller

Why

I just wanted to controll playback from cli

Setup

  1. Please go to here to create Client ID and Client Secret
  2. Please set redirect uri to http://127.0.0.1:14565/oauth/callback
  3. Please set these values like below.
export SPOTIFY_ID=your_client_id
export SPOTIFY_KEY=your_client_key
  1. Please run the commands below
go get -u github.com/justym/spocon
cd $GOPATH/src/github.com/justym/spocon
go build

If you are in a trouble, please see caution part in this README

Usage

spocon [sub cmds]

Sub cmmands list

  • start
    • start command can play/resume your spotify playback
    • 🚧 Mainly, please use this to resume. Now: play function is something wrong 🚧
  • pause
    • pause command can pasue your spotify playback
  • next
    • next command can listen next song
  • prev
    • prev command can listen previous song
  • status
    • status command can get your currently playback song name
  • help
    • help command can see short help message

Built with

  • github.com/spf13/cobra
  • github.com/nmrshll/oauth2-noserver

Caution

  • This cli-app uses Spotify Web API. So, please check their web page carefully.
  • This app uses that Web API through Authorization code flow (OAuth2.0).
  • This cli-app uses this package github.com/nmrshll/oauth2-noserver to do authentication rapidly. So please see this package carefully too.

Welcome

  • Code review
  • Issue
  • Pull Request

About

Dead simple Spotify playback controller from cli (Prototype)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages