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:
parent
97d271be2c
commit
89dcdb2139
@ -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) {
|
||||||
|
@ -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.*"
|
||||||
|
Loading…
Reference in New Issue
Block a user