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.3.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

slack_tunes-0.3.0-py2-none-any.whl (6.3 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for slack-tunes-0.3.0.tar.gz
Algorithm Hash digest
SHA256 443aa44831987c067315e36649f21cbd947f7acb833e53dc63b01f428c3743a2
MD5 cab915ca320f27d663d6b48414742f1e
BLAKE2b-256 fb317665c81b0acfa8aede7717a65127c679cb19c7e5cb5eb9b7a4f9b55f3777

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slack_tunes-0.3.0-py2-none-any.whl
Algorithm Hash digest
SHA256 11f8b544e438204aed6493c4aa01bc4ca2bfe11d993e44cb5fd5a3bef0105710
MD5 e947b01286ecd951574b690a647725e7
BLAKE2b-256 62b164d0280f8ce39dff5fa40c8a0d466166ee4e97b3667cbf749dc04f06791f

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