Skip to content

An application to stream animations of your Spotify currently playing to a WLED LED matrix.

Notifications You must be signed in to change notification settings

joeyy-watts/rustify-wled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RustifyWLED

A continuation of my previous project, SpotifyWLED, in Rust.

A not-so-simple script to listen to the currently playing track on your Spotify account and forward it to a WLED (https://github.com/Aircoookie/WLED) LED matrix.

Features

  • polls the Spotify API for your currently playing track
  • applies animations according to: playback state (play/pause), the track's tempo and energy, etc.
  • more to be added
Play Animation Pause Animation

Usage

This application requires you to have a Spotify developer account set up, with the client ID and client secret available.

Configuration

To setup the configuration, copy config/config.template.toml into config/config.toml and fill required fields.

Spotify Client ID/Secret

This is retrieved in one of three ways:

  • from environment variables: RSPOTIFY_CLIENT_ID and RSPOTIFY_CLIENT_SECRET
  • from the config.toml file
  • from CLI prompt upon running

After the configuration is properly setup, the application can be started with:

cargo run

In order to start playing the animation, go to:

<host ip>:8000/start

Upon first startup, you will be redirected to Spotify OAuth authentication.

NOTE: <host ip> is the IP of the machine you started this app on (as it runs at 0.0.0.0 by default)

About

An application to stream animations of your Spotify currently playing to a WLED LED matrix.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published