zestyping / openpixelcontrol

A simple stream protocol for controlling arrays of RGB lights.
http://openpixelcontrol.org/
353 stars 103 forks source link

Allow gl_server to load a different layout.json for each channel #26

Closed ferrouswheel closed 9 years ago

ferrouswheel commented 9 years ago

Currently gl_server listens to all channels and maps them to the same set of pixels. It'd be nice if you could specify multiple layouts and have each one on a different channel:

$ ./bin/gl_server layouts/a_circle_r1_50x.json layouts/another_circle_r1_50x.json
OPC: Listening on port 7890
OPC: Client connected from 127.0.0.1
Loaded "layouts/1_circle_r1_50x.json" as channel 1.
Loaded "layouts/2_circle_r1_50x.json" as channel 2.
ferrouswheel commented 9 years ago

Merged in #27