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

Uploaded Source

Built Distribution

slack_tunes-0.3.2-py2-none-any.whl (6.4 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for slack-tunes-0.3.2.tar.gz
Algorithm Hash digest
SHA256 d589524fc8c287285a58f287948a9200ef7a1cf2d0cf2b77e1db4d94f9ebba06
MD5 1e38cf2774f100a731b1abeb3598ada8
BLAKE2b-256 a0da33d2b45c2f741b8344e8931b373d22535c8758055ffc0aaee56f10429765

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slack_tunes-0.3.2-py2-none-any.whl
Algorithm Hash digest
SHA256 0f194a896e1ebad2c85c89aa68cfda0d0e98916d2f478023c1e3265b4e16b6a9
MD5 fcd1047f663bbb8565843c41e095346a
BLAKE2b-256 27d177ae045f283ea7de7ecc45548216d42b0250819915b788bb716e0be44011

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