Skip to content

Synchronizes album cover's most significant color based on color palette

License

Notifications You must be signed in to change notification settings

DaijobuDes/AlbumArtLightSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlbumArtLightSync

This project is created on my free time and only as my interest.

Why?

I recently bought a TP-Link Tapo L530 smart light bulb, got bored and had a stupid idea to synchronize the color from the album cover's most significant color based on the color palette when playing.

Image

Other notes

The light gets set to 50% brightness with 3450 light temperature.

Based on this line

await device.set().brightness(50).color_temperature(3450).send(device)

So you might want to adjust it to your needs or modify the whole line.

3rd party libraries used

https://github.com/mihai-dinculescu/tapo

Usage

Clone this repository first

git clone https://github.com/DaijobuDes/AlbumArtLightSync.git

Copy .env.example to .env and fill them up.

Last.fm API: https://www.last.fm/api

Yes, you are required to have a smart light bulb from TP-Link. If none, then go buy one.

Best if you use a virtual environment, then activate

python3 -m venv .
source bin/activate

Install dependencies

pip3 install -r requirements.txt

Running

python3 main.py

About

Synchronizes album cover's most significant color based on color palette

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages