https://github.com/sbdchd/apple-music-to-slack
set your slack status to the current song playing in iTunes/Music
https://github.com/sbdchd/apple-music-to-slack
apple-music itunes slack
Last synced: 6 months ago
JSON representation
set your slack status to the current song playing in iTunes/Music
- Host: GitHub
- URL: https://github.com/sbdchd/apple-music-to-slack
- Owner: sbdchd
- License: gpl-2.0
- Created: 2020-05-12T22:21:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-22T20:36:00.000Z (over 5 years ago)
- Last Synced: 2025-04-18T00:11:12.436Z (7 months ago)
- Topics: apple-music, itunes, slack
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 19
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# apple music to slack
> Update your slack status with the current song playing via the Music.app
## Setup
1. setup the slack app
1. create a new app https://api.slack.com/apps?new_app=1 providing a name
and selecting the desired Slack Workspace that you're going to run apple
music to slack on.
2. Under "Add features and functionality" select the "Permissions" section
3. scroll down to "User Token Scopes" and add `users.profile:write`
4. scoll up to the top of the page and click "Install App to Workspace".
5. copy the `OAuth Access Token`, this will be used as the `SLACK_SECRET_TOKEN`
2. clone the repo & compile with `cargo build`
3. Run the binary with the env var `SLACK_SECRET_TOKEN` set to your `OAuth Access Token`
Options:
- run via shell
```sh
export SLACK_SECRET_TOKEN=xoxp-11111-11111-11111-111111111111
while true; do
./target/debug/apple-music-to-slack;
# slack rates limit at anything less than 5 requests/second
sleep 10;
done
```
- run via `launchd`
```sh
cp ./target/debug/apple-music-to-slack /usr/local/bin/
cp xyz.dignam.apple-music-to-slack.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/xyz.dignam.apple-music-to-slack.plist
# to disable the launchd job
launchctl unload ~/Library/LaunchAgents/xyz.dignam.apple-music-to-slack.plist
```
4. Success! 🎶
## prior art
-
-