Skip to main content

send slack music notifications from spotify

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slack-tunes-0.4.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

slack_tunes-0.4.0-py2-none-any.whl (6.7 kB view details)

Uploaded Python 2

File details

Details for the file slack-tunes-0.4.0.tar.gz.

File metadata

  • Download URL: slack-tunes-0.4.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for slack-tunes-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a791c1d650e8beb642ac74768bec9ada530e3a52a9e8a93b8b2b83cc46b47878
MD5 39f04b5672552e6a809ac071e8b0c2b2
BLAKE2b-256 cf268f9a6f85cc594b9de79c07371ac96c92220f0103cca2166ff6bde9a7357d

See more details on using hashes here.

File details

Details for the file slack_tunes-0.4.0-py2-none-any.whl.

File metadata

File hashes

Hashes for slack_tunes-0.4.0-py2-none-any.whl
Algorithm Hash digest
SHA256 b1e73fa19ef7aa1a07cbe051d43fabead8f151397ca601d40617189bbda7dfaf
MD5 c9359ec03567a7330ce33139fcd9326f
BLAKE2b-256 27e8bc014284314c405b191cd1736cc772c7cbcd0556483df5979fece23e21e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page