Skip to content

Sugarv/spoticast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spoticast

Send Spotify's now playing track to Shoutcast server and/or TuneIn Radio AIR API

A simple Python script that sends Spotify's now playing track to one or more of the following:

  • a Shoutcast server
  • an Icecast server
  • TuneIn Radio AIR API.

Uses spotipy to retrieve song info from Spotify.

Configuration

  1. First, create a web app at Spotify, here. (Use http://localhost as a redirect uri).
  2. Create a config.txt file on the script folder, by copying the config-sample.txt and modifying the values below:
  • client_id = SPOTIFY_APP_CLIENT_ID (see here)
  • client_secret = SPOTIFY_APP_SECRET_KEY
  • redirect_uri = SPOTIFY_APP_REDIRECT_URL (with http/https)

Shoutcast section [shoutcast]

  • server = SHOUTCAST_SERVER_NAME (without http/https)
  • port = SHOUTCAST_SERVER_PORT
  • admin_pass = SHOUTCAST_SERVER_ADMIN_PASS

Icecast section [icecast]

  • server = Icecast server name (without http/https)
  • port = Icecast server port
  • mount_point = Icecast server mount point
  • admin_pass = Icecast server admin pass

TuneIn section [air_api]

  • partner_id = TUNEIN_PARTNER_ID
  • partner_key = TUNEIN_PARTNER_KEY
  • station_id = TUNEIN_STATION_ID
  1. Run the script

About

Spoticast: Send Spotify's now playing track info to Shoutcast / Icecast server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages