Spotify Notify Now Playing
Use with Node-RED
Sends a notification with artist and song title to your display when Spotify plays a song.
- Topic
- Smarthome
- Includes
- Flow
Runs on
- Does not run on 32×8 (TC001 & DIY) Made for AWTRIX 3.
- Does not run on 52×16 (TC002) Made for AWTRIX 3.
- Runs on 32×8 with AWTRIX 3 (TC001 & DIY)
Is this your flow?
If you created this flow, open your saved edit link to add it to your account. You can then manage it whenever you sign in. Adding it to your account replaces the edit link.
Flow description
This flow polls the Spotify Web API every 20 seconds and sends a notification to your display when a new song is played.
You can customize the look of the notification easily. Also there is an option to exclude certain devices (e.g. show notifications from your desktop computer and the media station, but not your mobile).
Unfortunately, podcasts or audio books do not work. I have tried to include this, but the Node-RED wrapper for the Spotify WebAPI does not seem to pass the required data.
Requirements
- Node node-red-contrib-spotify. Install via Manage Palette (not npm)
- Icon 18207 of the lametric icons. Install it via Icons tab in Awtrix WebUI.
- Spotify account and a registration for Spotify Web API for authentication using a Client id and a Client secret
Using Spotify WebAPI
- Go to https://developer.spotify.com, login with your account
- To create an app, go to your Dashboard, click on the Create an app button and enter the following information:
- App Name: My Node-RED
- App Description: My Node-RED integration
- Redirect URI: any URL, e.g. http://localhost
- Check that you want to use Web API
- Finally, check the Developer Terms of Service checkbox and tap on the Create button.
- Click on the Settings button for you app
- The Client ID can be found here. The Client Secret can be found behind the View client secret link.
- Insert this this client id and secret in the Spotify OAuth config
Sign in to view and copy the code of this flow.
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
Have an idea?
Sign in to ask questions and join the conversation.