mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
update redmes and some colours for blink1, ledborg and digirgb
This commit is contained in:
@@ -54,7 +54,7 @@ module.exports = function(RED) {
|
||||
// these are the @cheerlight ones.
|
||||
var colors = {"red":"#FF0000","green":"#00FF00","blue":"#0000FF","cyan":"#00FFFF",
|
||||
"white":"#FFFFFF","warmwhite":"#FDF5E6","oldlace":"#FDF5E6","purple":"#800080","magenta":"#FF00FF",
|
||||
"yellow":"#FFFF00","amber":"#FFD200","orange":"#FFA500","black":"#000000","pink","#FF69B4"}
|
||||
"yellow":"#FFFF00","amber":"#FFD200","orange":"#FFA500","black":"#000000","pink":"#FF69B4"}
|
||||
if (msg.payload.toLowerCase() in colors) {
|
||||
var c = colors[msg.payload.toLowerCase()];
|
||||
r = parseInt(c.slice(1,3),16);
|
||||
|
@@ -13,7 +13,8 @@ and <a href="https://github.com/todbot/blink1/blob/master/linux/51-blink1.rules"
|
||||
Install
|
||||
-------
|
||||
|
||||
Run the following command in the root directory of your Node-RED install
|
||||
Run the following command in the user directory of your Node-RED install.
|
||||
This is usually `~/.node-red`
|
||||
|
||||
npm install node-red-node-blink1
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-blink1",
|
||||
"version" : "0.0.5",
|
||||
"version" : "0.0.6",
|
||||
"description" : "A Node-RED node to control a Thingm Blink(1)",
|
||||
"dependencies" : {
|
||||
"node-blink1" : "0.1.5"
|
||||
|
Reference in New Issue
Block a user