Skip to content

Get your Chromecast currently playing song posted to Slack!

License

Notifications You must be signed in to change notification settings

sh0oki/chromecastslack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chromecastslack

Report your playing songs to slack!

This script will look for active Chromecasts in your LAN, then report the currently played song to a slack channel of your choosing.

I tested this script with Python >= 3.5. Other versions (3.0 and up) should work, but haven't been tested.

Setup

  1. Have a working Chromecast in your LAN, playing music from your favorite source (Spotify, Soundcloud, ...).
  2. Create a bot user in your Slack account.
  3. Install chromecastslack on any computer in your LAN.
  4. Use the API token (xoxb-a-b) to execute the bot.

Installing

git clone [email protected]:sh0oki/chromecastslack.git
cd chromecastslack
pip3 install -r ./requirements.txt

Usage

SLACKBOT_TOKEN=xoxb-my-token CHANNEL=musicreactions SLACK_USERNAME=Discobear python3 listener.py

Use your favorite init script to execute the script after restart. CHANNEL and SLACK_USERNAME variables are optional, their default values are shown above.

Example

Screenshot

About

Get your Chromecast currently playing song posted to Slack!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages