Christian-Me / node-red-contrib-ui-iro-color-picker

Node-RED dashboard color picker widget utilizing the iro.js library. Can be configured as a widget or modal popup window. Individual components can be combined,
Apache License 2.0
4 stars 3 forks source link

output converted values #7

Closed smcgann99 closed 2 years ago

smcgann99 commented 2 years ago

Hi,

Trying to use alexa with your node to control some led lights runing WLED firmware.

I get an input from alexa with color in hsv format which I use to update the widget color, If I click the widget the output I need is rgb.

It would be nice if the input message was converted to the type set for output. One option would be to include an object with all converted values with the new message when passed through ?

Christian-Me commented 2 years ago

All color conversion is happening on client side (browser). Pass through messages don't pass the client and it passes the node completely (even my own code). So the color picker is no color conversion tool. It only accept many color formats but this is based on the iro.js module (and some of my own tweaks)

For color conversion I created a separate node ...

https://flows.nodered.org/node/node-red-contrib-chroma

smcgann99 commented 2 years ago

OK fair enough I have managed a work around now.