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

Add support for simulation #1

Open
ajcord opened this issue May 11, 2015 · 0 comments
Open

Add support for simulation #1

ajcord opened this issue May 11, 2015 · 0 comments

Comments

@ajcord
Copy link
Member

ajcord commented May 11, 2015

Allow users to simulate the effect of the script without actually updating the lights (for debugging).

Implementation proposal:

  • Browser sends a flag with the POST request, then opens a websocket to the Python script
  • manager.py sends the light numbers and positions over the websocket
  • light.py sends the new RGB values over the websocket instead of Bluetooth
  • Browser receives RGB values and displays them

Potential complications:

  • Simulation should be scalable - browser should be able to render a non-static lighting configuration
  • Websocket to remote server instead of localhost could cause problems
  • Lights might have inaccurate color reproduction (e.g. 0xFFFFFF currently has a pink hue on all the lights)
    • Should we correct for this? How? In light.py, the browser, or the lights themselves?
@ajcord ajcord self-assigned this May 11, 2015
@ajcord ajcord removed their assignment May 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant