update redmes and some colours for blink1, ledborg and digirgb

This commit is contained in:
dceejay
2015-03-12 13:54:20 +00:00
parent 7135bb3067
commit 96bfc5b672
8 changed files with 19 additions and 16 deletions

View File

@@ -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);

View File

@@ -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

View File

@@ -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"