From 89dcdb2139ba5753ace7e2543c7614dde6653914 Mon Sep 17 00:00:00 2001 From: dceejay Date: Fri, 17 Apr 2015 21:07:25 +0100 Subject: [PATCH] Add amber as a named colour to blinkstick --- hardware/blinkstick/76-blinkstick.js | 1 + hardware/blinkstick/package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hardware/blinkstick/76-blinkstick.js b/hardware/blinkstick/76-blinkstick.js index a35a377b..d5e20a7d 100644 --- a/hardware/blinkstick/76-blinkstick.js +++ b/hardware/blinkstick/76-blinkstick.js @@ -252,6 +252,7 @@ module.exports = function(RED) { } else { //Sanitize color value node.color = msg.payload.toLowerCase().replace(/\s+/g,''); + if (node.color === "amber") { node.color = "#FFBF00"; } } if (Object.size(node.led) !== 0) { diff --git a/hardware/blinkstick/package.json b/hardware/blinkstick/package.json index f87b8a91..743ad5ac 100644 --- a/hardware/blinkstick/package.json +++ b/hardware/blinkstick/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-blinkstick", - "version" : "0.1.6", + "version" : "0.1.7", "description" : "A Node-RED node to control a Blinkstick", "dependencies" : { "blinkstick" : "1.1.*"