Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kosimst/spotify-hue-sync
https://github.com/kosimst/spotify-hue-sync
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kosimst/spotify-hue-sync
- Owner: kosimst
- Created: 2021-04-28T09:43:16.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T09:30:05.000Z (over 3 years ago)
- Last Synced: 2024-07-10T13:12:46.100Z (4 months ago)
- Language: TypeScript
- Size: 63.5 KB
- Stars: 18
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spotify-hue-sync
Sync your Hue Lights with your Spotify playback.
## What is it?
This project controls your Hue lights based on the Spotify Audio Analysis of your current playback in realtime. Each light represents a pitch. The colors are extracted from the album cover of your playback. Playback is rendered at roughly 30fps with 0ms latency. If you experience any latency, you can configure this project accordingly.
## How-to
For the best experience, at least 8 bulbs are recommended, as there are 12 pitches. With fewer lamps, not every pitch is synced and it can therefore look out of sync.
This project uses the Entertainment API of your Hue Bridge. Therefore, you need to set up an entertainment area via the Hue App.
To get started you need to provide your credentials for both your Spotify Account as well as your Hue Bridge. Put them in a file called credentials.json at the project's root. The file should be structured like this:
```
{
"zone": "",
"psk": ""
},
"spotify": {
"clientId": "",
"clientSecret": "",
"refreshToken": ""
}
}
```Please refer to the documentation of the node-phea package on how to get your bridge credentials.
## Usage
Just run `npm start` (after you installed all dependencies via `npm i`) and your server is ready. Go to `localhost:7070/start` to start syncing and `localhost:7070/stop` to stop it.