mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Add Amber to ledborg colour list... just because...
This commit is contained in:
parent
4cd6be3cde
commit
779a74e00c
@ -48,7 +48,7 @@ function LedBorgNode(n) {
|
||||
// you can add fancy colours by name here if you want...
|
||||
// these are the @cheerlight ones.
|
||||
var colors = {"red":"200","green":"020","blue":"002","cyan":"022","white":"222","pink":"201",
|
||||
"warmwhite":"221","purple":"101","magenta":"202","yellow":"220","orange":"210","black":"000"}
|
||||
"warmwhite":"221","purple":"101","magenta":"202","yellow":"220","amber":"220","orange":"210","black":"000"}
|
||||
if (msg.payload.toLowerCase() in colors) {
|
||||
var c = colors[msg.payload.toLowerCase()];
|
||||
fs.writeFile('/dev/ledborg', c, function (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user