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

Uploaded Source

Built Distribution

slack_tunes-0.4.1-py2-none-any.whl (6.8 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: slack-tunes-0.4.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for slack-tunes-0.4.1.tar.gz
Algorithm Hash digest
SHA256 eba42cb9216ea5f5df885782f0763baa8435ef7dc6facab2337682de3afbd6e5
MD5 7264fbd23e4f19d52bce9edb88190481
BLAKE2b-256 d4eb34d287823a44027ae7d5d99cdedf5b5f62e9e4e203fd16543acda6138349

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slack_tunes-0.4.1-py2-none-any.whl
Algorithm Hash digest
SHA256 afa6b13b7fc8b9aaf74cd33b6955df726d0c5589783186d6d6b43daac7107c0d
MD5 09e91758576e9a3ca01cbcdb992c3365
BLAKE2b-256 4c7672cee99864c91175568ba7b63c1163f4b9ed6fd51ed47f435f53d8b58b1e

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