Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to write a new display output driver? #112

Open
Dahrkael opened this issue Sep 21, 2020 · 1 comment
Open

how to write a new display output driver? #112

Dahrkael opened this issue Sep 21, 2020 · 1 comment

Comments

@Dahrkael
Copy link

I have some Yeelight bulbs in my living room and I would like to output to them, but I don't see any documentation on how to write a new display (or how the existing ones work exactly).
Yeelight music mode works by telling the bulb to connect to a TCP server, which then will send json commands at whatever rate.
My theory is that I can manage the bulbs with any of the available external programs and point them to connect to colorchord (assuming I can run a TCP server inside somewhere), then just spit some hardcoded json sprintf'd with the required brightness and color values.

does that make sense? is it possible? any hints?
thanks

@cnlohr
Copy link
Owner

cnlohr commented Sep 22, 2020

You could copy-and-paste DisplayNetwork, and modify it to your needs. It has an example UDP client, and making a TCP server wouldn't be bad. As long as the JSON is cleanly formatted it should be pretty easy to generate with some sprintfs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants