Skip to content

🎶 Update your Slack status with your currently playing Last.fm track

Notifications You must be signed in to change notification settings

zoetrope69/lastfm-slack-status-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sync Last.fm tracks to your Slack status

🎶 Update your Slack status with your currently playing Last.fm track

I liked a version of this that used Spotify but wanted a version that uses Last.fm.

Last.fm in theory works with any music source not just Spotify but still has good integrations with Spotify.

The Last.fm API is a lot easier to use than Spotify too as you just need a API key and don't need to worry about OAuth.

Screenshots

'none' theme 'none' theme screenshot

'lastfm' theme 'lastfm' theme screenshot

Installation

  1. Remix this app 🎤
  2. Add Slack emojis from assets

In the assets section there are Last.fm and Scrobble icons. Add the to Slack with the names lastfm and lastfm-scrobbling.

Last.fm icon Scrobble GIF

  1. Get Last.fm API key and secret

Add API key and secret environment variables to .env

  1. Create a Slack app with user.profile:write scope permissions.

Add the app to your workspace and copy the full xoxp-xxx-xxx token to .env

  1. We'll use Uptime Robot to poll the Glitch app every minute to update the status.

Create an account on Uptime Robot Set the BOT_ENDPOINT variable to something secret For example if BOT_ENDPOINT is 'runescape' your URL could be https://lastfm-slack-status-sync.glitch.me/sync-runescape Update Uptime Robot accordingly

  1. Set a THEME variable to 'lastfm' for Last.fm theme or 'none' for emojis (See screenshots)

About

🎶 Update your Slack status with your currently playing Last.fm track

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published