-
Notifications
You must be signed in to change notification settings - Fork 69
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
What should happen when using the Lighting controls? #1645
Comments
This is the query that I use to get the lighting data out of Thorium: query Simulators($simulatorId: String) {
simulators(id: $simulatorId) {
id
lighting {
intensity # [0 - 1] How bright the lights should be
action # One of 'normal', 'fade', 'shake', 'strobe', 'oscillate'
actionStrength # [0 - 1] How intense the action is. How quickly it shakes, or how fast it strobes or oscillates
transitionDuration # How long a 'fade' action should last in milliseconds
color # A suggested color for the lights
}
}
} (There is a corresponding subscription called Almost all of the logic for how these values are supposed to be interpreted is left up to the lighting controls software. Below I give some guidelines for my intention with these settings.
The lighting control software should take the action and perform whatever function is necessary for the action. If the "Strobe" should flash the lights on and off, with the "Oscillate" should make the lights fade in and out continuously. "Fade" makes it so changing the intensity does a linear interpolation over the One thing which Thorium does automatically - if the 'Shake Long' or 'Shake Short' buttons are pressed or if the "Fade Up" or "Fade Down" buttons are pressed, it will automatically switch the action back to 'normal' after the If there is anything in this API that should be updated, changed, improved, added to... whatever - just let me know. I'm happy to extend it to do whatever you need it to do. |
I believe this has been addressed. If you have any more questions, you can open a new issue or comment on this one. I'm going to close this one. |
Thank you, this helps a lot. |
Detailed Description
I'm working on integrating light control into Thorium. There are already controls available, but it's hard for me to understand what the desired outcome is when using these controls.
Is there a documentation? So that I know how the actual lights should be controlled?
What was the idea behind the current controls?
The text was updated successfully, but these errors were encountered: