1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Add amber as a named colour to blinkstick

This commit is contained in:
dceejay 2015-04-17 21:07:25 +01:00
parent 97d271be2c
commit 89dcdb2139
2 changed files with 2 additions and 1 deletions

View File

@ -252,6 +252,7 @@ module.exports = function(RED) {
} else { } else {
//Sanitize color value //Sanitize color value
node.color = msg.payload.toLowerCase().replace(/\s+/g,''); node.color = msg.payload.toLowerCase().replace(/\s+/g,'');
if (node.color === "amber") { node.color = "#FFBF00"; }
} }
if (Object.size(node.led) !== 0) { if (Object.size(node.led) !== 0) {

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-blinkstick", "name" : "node-red-node-blinkstick",
"version" : "0.1.6", "version" : "0.1.7",
"description" : "A Node-RED node to control a Blinkstick", "description" : "A Node-RED node to control a Blinkstick",
"dependencies" : { "dependencies" : {
"blinkstick" : "1.1.*" "blinkstick" : "1.1.*"