Adorkable / node-red-contrib-ui-led

A simple LED status indicator for the Node-RED Dashboard
MIT License
16 stars 12 forks source link

Re-orgainse value/color table, fix spacing. Add library example. #43

Closed dceejay closed 4 years ago

dceejay commented 4 years ago

Hi, I have had a go at tidying up the spacing of the value / colour table slightly and swapped the order of the columns as I think it is more obvious to map value -> colour. I added the word msg.payload so that it is more obvious that is the value we are comparing.

I also added the emitOnlyNewValues: false, which should fix Issue #36.

And added an example to the examples dir so that it appears in the Editor - Import - Examples menu. Hopefully these are ok.

yoiang commented 4 years ago

Hey @dceejay , this is great, thanks so much for the PR!

Would it be alright if you or I split this into a few PRs, I'm thinking:

How does that sound? I'd be happy to do the legwork, I appreciate your submission 😊

dceejay commented 4 years ago

Hi

yoiang commented 4 years ago

Merged in dbe9c434c85578058d58bbcf08c588e4d0a11689, thanks again! It'll go out in the next release soon.

dceejay commented 4 years ago

excellent - thanks

yoiang commented 4 years ago

Thank you for the PR!