Skip to content

send slack away music notifications from itunes or spotify

License

Notifications You must be signed in to change notification settings

bdeo/python-slack-tunes

 
 

Repository files navigation

python-slack-tunes

send slack music notifications from itunes or spotify

Requirements

  • OS X
  • iTunes or Spotify

Installation

Using PIP via PyPI:

pip install slack-tunes

Using PIP via Github:

pip install git+https://github.com/josegonzalez/python-slack-tunes.git#egg=slack-tunes

Usage

Export a SLACK_API_TOKEN, as shown on their tokens page, and then execute the binary:

export SLACK_API_TOKEN="YOUR_TOKEN"
slack-tunes

Slack tunes will run in the foreground, and can be terminated at any time. It will update the status at most every 10 seconds, and will clear your status if no music is playing.

You can also specify multiple tokens via comma-delimiter. This is useful for notifying multiple slack teams.

export SLACK_API_TOKEN="YOUR_TOKEN,YOUR_OTHER_TOKEN"
slack-tunes

demo of slack-tunes output

About

send slack away music notifications from itunes or spotify

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 55.1%
  • Shell 44.9%