Bridge that publishes some infos about the current running Spotify track as homie device.
- A Spotify premium account
- An app, registered at
https://developer.spotify.com/dashboard/
- A MQTT server
-
Use the
get_token.py
to aquire a token for your spotify account which is needed to request infos about the current running track. This will generate a file with the name.cache-<you-email>
in the working directory. -
You have to mount this file into the docker container. Look into
docker-compose.example.yml
to see an example how to run the container.
The exposed homie device is structured as follows:
- player
- is-playing - Flag that is true if some track is playing
- track - The name of the current playing track
- dominant-album-color - The dominant color of the album cover of the current playing track, chosen based on hue and brightness.