Skip to content
AWTRIX FLOWS
Submit flow
Spotify Notify Now Playing shown on an AWTRIX display
Node-RED Smarthome AWTRIX 3

Spotify Notify Now Playing

Sends a notification with artist and song title to your display when Spotify plays a song.

Built by rogote

Download flow

Published 30 June 2024 · updated 7 July 2024 · 2 downloads

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
More like this Node-RED Smarthome AWTRIX 3