https://github.com/flock4h/technobulb
Music propelled Ledvance RGBW Bulb
https://github.com/flock4h/technobulb
Last synced: 6 days ago
JSON representation
Music propelled Ledvance RGBW Bulb
- Host: GitHub
- URL: https://github.com/flock4h/technobulb
- Owner: FLOCK4H
- License: mit
- Created: 2024-02-29T17:54:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-01T01:15:00.000Z (over 1 year ago)
- Last Synced: 2025-02-28T20:43:32.242Z (4 months ago)
- Language: Python
- Size: 158 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TechnoBulb
The bulb's color will change with the output stream of your device (e.g. music), pretty cool right?# Setup
This app was made for _LEDVANCE RGBW 806lm 9w E27_
```
$ pip install pytuya soundcard scapy PySide6 numpy
$ cd TechnoBulb
$ cd resync-key
$ python print_local_keys.py
```
You will need to include your local keys and devices mac adresses in `techno_bulb.py` file
```
$ cd ..
$ python techno_bulb.py
```
The GUI is for simply pausing the algorithm, press 'P' to pause the color at current frame.
# About
This app catches the sound stream of the default output device on the lower level, means it captures the stream before the audio gets to the speakers.
The delay is also minimal, very difficult to notice.
The audio is then converted into magnitude and frequency using FFT (Fast Fourier Transformation) and is applied on the color gradient scheme to finally send the right color via request to the bulb.