Skip to content

New Flows can now belong to an account. Your old edit link keeps working — open it and attach the flow to an account, and you can edit it from any browser you sign in with.

Sign in
Unclaimed

This flow was submitted before accounts existed, so nobody owns it yet. If you submitted it, open the edit link you were given — it still works — and you can attach the flow to an account from there. There is no deadline, and attaching it retires the link for good.

Spotify Notify Now Playing shown on an AWTRIX display
Fig. 1 Spotify Notify Now Playing, as rogote runs it.

Spotify Notify Now Playing

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

Specifications
System Node-RED
Firmware AWTRIX 3
Topic Smarthome
Built by rogote
File YjJZO6q7oyrL.json · 20.3 KB
Icons
Published 30 Jun 2024 · updated 7 Jul 2024
Downloads 23
Download flow

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 flows for Node-RED or Smarthome

Something wrong with this flow? Report it.