-
Notifications
You must be signed in to change notification settings - Fork 12
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 ability to toggle glow effect around LED on and off from config panel #55
Comments
if set const glow = false; //msg.glow; glow is gone ... |
Hello @AndreasHeine ! Internally the control is passing |
injecting glow false does not turn the glow off! |
Gotcha! Would you have expected it to? If you read through the README documentation |
message object: i would expect that the led glow updates on message!? at least i tought thats what the code looks like (i might be wrong) |
That code is internal to the node, the |
if i look for example into the dashboard gauge its possible to change the sections on message same in some charts aswell. i normaly hardcode them off because i dont like the glow effect... |
plus one |
So to clarify when you want to independent of the |
both color and glow would be a awesome features! dashboard gauge node:if you want to change the colors of the sectors you can send a msg with a ui_contorl obj and empty payload obj to adjust the colors dynamic according to a setpoint let upper = msg.payload * 1.04;
let lower = msg.payload * 0.95;
msg = {};
msg.ui_control = {seg1:lower||0,seg2:upper||0}
return msg; |
Gotcha! I'm going to rename the issue accordingly for the glow, that would be new functionality. Have you had a chance to read the documentation re: color definitions in the message (vs the default in the config panel): https://github.com/Adorkable/node-red-contrib-ui-led/blob/master/README.md#custom-statuses-in-msg . Let me know if that isn't enough, if there is some functionality regarding the colors that you don't think is covered here. |
The ability to disable the glow effect has been added to the node config panel in version 0.4.4! Created a separate issue for toggling from |
if i inject a msg.glow = false the glow is still there!?
The text was updated successfully, but these errors were encountered: